Pin QtDBus shared library on Windows after being loaded by X-Plane

refs #850
This commit is contained in:
Roland Winklmeier
2017-01-06 18:37:21 +01:00
committed by Mathew Sutcliffe
parent 4a28807768
commit 7f21dae378
3 changed files with 45 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#ifndef BLACKMISC_DBUS_H
#define BLACKMISC_DBUS_H
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/metaclass.h"
#include "blackmisc/inheritancetraits.h"
#include <QDBusArgument>
@@ -159,4 +160,9 @@ const QDBusArgument &operator>>(const QDBusArgument &argument, QPixmap &pixmap);
*/
QDBusArgument &operator<<(QDBusArgument &argument, const QPixmap &pixmap);
//! Windows: prevents unloading of QtDBus shared library until the process is terminated.
//! QtDBus must have been loaded already by the calling process.
//! Does nothing on non-Windows platforms.
BLACKMISC_EXPORT void preventQtDBusDllUnload();
#endif // guard