Fixed close of RetroShare when closing MessengerWindow.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3448 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-05 22:15:50 +00:00
parent bacf1f5a80
commit 4753e540ba

View File

@ -163,6 +163,8 @@ int main(int argc, char *argv[])
#ifdef MINIMAL_RSGUI
MessengerWindow::showYourself();
rshare.setQuitOnLastWindowClosed(true);
#else
MainWindow *w = MainWindow::Create ();
@ -214,8 +216,6 @@ int main(int argc, char *argv[])
timer->start(1000);
#endif // MINIMAL_RSGUI
rshare.setQuitOnLastWindowClosed(true);
/* dive into the endless loop */
int ti = rshare.exec();
#ifndef MINIMAL_RSGUI