Allow prioritizing QUIT over other commands
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 9 Jun 2016 11:38:38 +0000 (07:38 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 5 Sep 2016 17:21:59 +0000 (19:21 +0200)
commit3966090a1e7093c417560f7ee13ab310215d9ccd
treef99c89bbe2551deec012da5b80dab6f2b88662b1
parent45a0d954542db252ceb62b61243ee5c2253383de
Allow prioritizing QUIT over other commands

Add a forceImmediate flag to issueQuit, allowing the QUIT command to
jump the command queue.

A future update will prioritize QUIT when core is shutting down so
other messages won't block showing the user's quit message.

Don't prioritize QUIT normally in case the user sends some messages,
thinks they've all been delivered, then sends a QUIT.

(Eventually, Quassel should display queued messages differently from
messages that have been sent)

Closes GH-201.
src/core/corenetwork.cpp
src/core/corenetwork.h
src/core/coreuserinputhandler.cpp
src/core/coreuserinputhandler.h