X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=23b838ff4b08495a7d38c41b9f1fe8206051416e;hp=c3c438517b98e3eef738aa9e77bc69a897320c4d;hb=f88bfa81380ceb2c4afce5b15f753570a1ef063d;hpb=b3b83bb123fb3087eba7147539ec0e7a34c6258b diff --git a/src/client/client.cpp b/src/client/client.cpp index c3c43851..23b838ff 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -214,6 +214,16 @@ void Client::onDbUpgradeInProgress(bool inProgress) } +void Client::onExitRequested(int exitCode, const QString &reason) +{ + if (!reason.isEmpty()) { + qCritical() << reason; + emit exitRequested(reason); + } + QCoreApplication::exit(exitCode); +} + + /*** Network handling ***/ QList Client::networkIds()