X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.cpp;fp=src%2Fqtui%2Fmonoapplication.cpp;h=128ab979c07b23d289f0113c7ca396b6df4a7c49;hp=c9695cc83f87d98659feda1a8bcf30cba94f99bb;hb=ddfb1d2574c4bffd180361a80df9b1cd584bb040;hpb=72473527f99cbe68dcfcb4ca17f828bd3775bba7 diff --git a/src/qtui/monoapplication.cpp b/src/qtui/monoapplication.cpp index c9695cc8..128ab979 100644 --- a/src/qtui/monoapplication.cpp +++ b/src/qtui/monoapplication.cpp @@ -63,6 +63,18 @@ Quassel::QuitHandler MonolithicApplication::quitHandler() void MonolithicApplication::onClientDestroyed() +{ + if (_core) { + connect(_core, SIGNAL(shutdownComplete()), this, SLOT(onCoreShutdown())); + _core->shutdown(); + } + else { + QCoreApplication::quit(); + } +} + + +void MonolithicApplication::onCoreShutdown() { if (_core) { connect(_core, SIGNAL(destroyed()), QCoreApplication::instance(), SLOT(quit()));