This commit is contained in:
Roman Bovsunivskiy
2010-05-25 18:54:23 +00:00
parent b465518637
commit 34c81445dc
+3
View File
@@ -245,6 +245,9 @@ int main( int argc, char *argv[] )
mw->show(); mw->show();
// it is connected to QApplication's slot, not to FWBApplication
app->setQuitOnLastWindowClosed(false);
// connecting to right slot
app->connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit())); app->connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
#if defined(Q_WS_MAC) #if defined(Q_WS_MAC)