Plugin directory fix for Qt5 Mac OS platforms.
This commit is contained in:
+7
-7
@@ -87,13 +87,6 @@ int main( int argc, char **argv )
|
|||||||
socket_startup();
|
socket_startup();
|
||||||
curl_global_init(CURL_GLOBAL_NOTHING);
|
curl_global_init(CURL_GLOBAL_NOTHING);
|
||||||
|
|
||||||
/////// can be removed for non-qt-guis ////////////
|
|
||||||
SharedTools::QtSingleApplication a( "PokerTH", argc, argv );
|
|
||||||
|
|
||||||
if (a.sendMessage("Wake up!")) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// The following needs to be done directly after the application is created.
|
// The following needs to be done directly after the application is created.
|
||||||
QDir dir(QApplication::applicationDirPath());
|
QDir dir(QApplication::applicationDirPath());
|
||||||
@@ -102,6 +95,13 @@ int main( int argc, char **argv )
|
|||||||
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
|
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/////// can be removed for non-qt-guis ////////////
|
||||||
|
SharedTools::QtSingleApplication a( "PokerTH", argc, argv );
|
||||||
|
|
||||||
|
if (a.sendMessage("Wake up!")) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//create defaultconfig
|
//create defaultconfig
|
||||||
ConfigFile *myConfig = new ConfigFile(argv[0], false);
|
ConfigFile *myConfig = new ConfigFile(argv[0], false);
|
||||||
Log *myLog = new Log(myConfig);
|
Log *myLog = new Log(myConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user