From: Manuel Nickschas Date: Mon, 14 Apr 2008 17:40:46 +0000 (+0000) Subject: Save the mainwindow state properly when exiting the client. X-Git-Tag: 0.2.0-beta1~47 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=da28b86876edea39e97ffdd4cc5602072c001f93 Save the mainwindow state properly when exiting the client. --- diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 1b503efa..d16916df 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -100,6 +100,9 @@ void MainWin::init() { Client::signalProxy()->attachSignal(this, SIGNAL(requestBacklog(BufferInfo, QVariant, QVariant))); + // let's hope here that nothing in disconnectedFromCore() needs user interaction/event loop... + connect(QApplication::instance(), SIGNAL(aboutToQuit()), this, SLOT(disconnectedFromCore())); + connect(Client::instance(), SIGNAL(networkCreated(NetworkId)), this, SLOT(clientNetworkCreated(NetworkId))); connect(Client::instance(), SIGNAL(networkRemoved(NetworkId)), this, SLOT(clientNetworkRemoved(NetworkId))); //ui.bufferWidget->init();