Plugin directory fix for Qt5 Mac OS platforms.

This commit is contained in:
lotodore
2013-08-31 21:31:12 +02:00
parent 388843e146
commit ec3c2eee84
+7 -7
View File
@@ -87,13 +87,6 @@ int main( int argc, char **argv )
socket_startup();
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__
// The following needs to be done directly after the application is created.
QDir dir(QApplication::applicationDirPath());
@@ -102,6 +95,13 @@ int main( int argc, char **argv )
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
#endif
/////// can be removed for non-qt-guis ////////////
SharedTools::QtSingleApplication a( "PokerTH", argc, argv );
if (a.sendMessage("Wake up!")) {
return 0;
}
//create defaultconfig
ConfigFile *myConfig = new ConfigFile(argv[0], false);
Log *myLog = new Log(myConfig);