Fix qtsingleapplication.
This commit is contained in:
+4
-4
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user