From da28b86876edea39e97ffdd4cc5602072c001f93 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 14 Apr 2008 17:40:46 +0000 Subject: [PATCH] Save the mainwindow state properly when exiting the client. --- src/qtui/mainwin.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.20.1