mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
Pin QtDBus shared library on Windows after being loaded by X-Plane
refs #850
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4a28807768
commit
7f21dae378
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user