Fix qtsingleapplication.

This commit is contained in:
lotodore
2010-07-23 17:35:18 +00:00
parent 38970a626a
commit 6e926af693
+4 -4
View File
@@ -85,11 +85,11 @@ int main( int argc, char **argv )
curl_global_init(CURL_GLOBAL_NOTHING); curl_global_init(CURL_GLOBAL_NOTHING);
/////// can be removed for non-qt-guis //////////// /////// 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; 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.
@@ -147,7 +147,7 @@ int main( int argc, char **argv )
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
startWindowImpl mainWin(myConfig); startWindowImpl mainWin(myConfig);
//a.setActivationWindow(&mainWin, true); a.setActivationWindow(&mainWin, true);
int retVal = a.exec(); int retVal = a.exec();