From 6e926af6931faab104ae2a61b73ba56215646815 Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 23 Jul 2010 17:35:18 +0000 Subject: [PATCH] Fix qtsingleapplication. --- src/pokerth.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pokerth.cpp b/src/pokerth.cpp index 9dbfeb2c..6e20de5e 100755 --- a/src/pokerth.cpp +++ b/src/pokerth.cpp @@ -85,11 +85,11 @@ int main( int argc, char **argv ) curl_global_init(CURL_GLOBAL_NOTHING); /////// can be removed for non-qt-guis //////////// - QApplication a( argc, argv ); + QtSingleApplication a( argc, argv ); - /*if (a.sendMessage("Wake up!")) { + if (a.sendMessage("Wake up!")) { return 0; - }*/ + } #ifdef __APPLE__ // The following needs to be done directly after the application is created. @@ -147,7 +147,7 @@ int main( int argc, char **argv ) /////////////////////////////////////////////////// startWindowImpl mainWin(myConfig); - //a.setActivationWindow(&mainWin, true); + a.setActivationWindow(&mainWin, true); int retVal = a.exec();