common: Prepare Quassel::quit() to be used more widely
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 28 Sep 2018 20:24:33 +0000 (22:24 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Oct 2018 17:06:49 +0000 (19:06 +0200)
commit1f2784bfa1c1ce90defa32f13c78afd72c227bfd
tree2d3ca9ffb6486568e636992fa086ba3ce4822c6b
parent493043890c74e4679bb3fdaf512a0e1e52c426d3
common: Prepare Quassel::quit() to be used more widely

In the future we want to use Quassel::quit() as the central entry
point for cleanly quitting the application, instead of relying
on QCoreApplication::quit(), which directly stops the event loop
and thus won't process any asynchronous cleanup tasks.

Make the slot public, and protect against multiple invocations.
src/common/quassel.cpp
src/common/quassel.h