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>
Wed, 28 Feb 2018 22:09:10 +0000 (23:09 +0100)
commit4bd24192f86fa97c62ff1ef11505913574664919
tree04c4db05ebba38819aeec9192bed6f74ae03c022
parent106d151d994fb26fd4586c6adf60a165075961a9
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.

(cherry picked from commit 3966090a1e7093c417560f7ee13ab310215d9ccd)
src/core/corenetwork.cpp
src/core/corenetwork.h
src/core/coreuserinputhandler.cpp
src/core/coreuserinputhandler.h