X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=d16916df37d64cd45d3bad2126529bb494fc43ee;hp=1b503efa9dba67206fa1a939a637c61750807923;hb=da28b86876edea39e97ffdd4cc5602072c001f93;hpb=ef450b6502abfcad52fec7581a3d807a5386512f 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();