From ec3c2eee847efa4c06d2400f34ec4813356d664f Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 31 Aug 2013 21:31:12 +0200 Subject: [PATCH] Plugin directory fix for Qt5 Mac OS platforms. --- src/pokerth.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pokerth.cpp b/src/pokerth.cpp index ab911e5f..4a96bd84 100755 --- a/src/pokerth.cpp +++ b/src/pokerth.cpp @@ -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);