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

@@ -14,6 +14,7 @@
#include "utils.h"
#include "traffic.h"
#include "service.h"
#include "blackmisc/dbus.h"
#include <XPLM/XPLMPlanes.h>
#if ! defined(XPLM210)
@@ -57,6 +58,10 @@ PLUGIN_API int XPluginEnable()
QXPlaneEventLoop::exec();
g_plugin = new XBus::CPlugin;
// Here we can be safely assume that QtDBus was loaded by the process
preventQtDBusDllUnload();
return 1;
}