X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fwindowssignalwatcher.cpp;h=f31e0383a6cc6f5b3d0b936556888319ad0b7a60;hp=5c9a48151507777fa1a59ee92f92ea62d6690e7d;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/common/windowssignalwatcher.cpp b/src/common/windowssignalwatcher.cpp index 5c9a4815..f31e0383 100644 --- a/src/common/windowssignalwatcher.cpp +++ b/src/common/windowssignalwatcher.cpp @@ -33,17 +33,17 @@ // condition variable once shutdown is complete... static BOOL WINAPI consoleCtrlHandler(DWORD ctrlType) { - switch (ctrlType) { - case CTRL_C_EVENT: // Ctrl+C - case CTRL_CLOSE_EVENT: // Closing the console window - WindowsSignalWatcher::signalHandler(SIGTERM); - return TRUE; - default: - return FALSE; - } + switch (ctrlType) { + case CTRL_C_EVENT: // Ctrl+C + case CTRL_CLOSE_EVENT: // Closing the console window + WindowsSignalWatcher::signalHandler(SIGTERM); + return TRUE; + default: + return FALSE; + } } -WindowsSignalWatcher::WindowsSignalWatcher(QObject *parent) +WindowsSignalWatcher::WindowsSignalWatcher(QObject* parent) : AbstractSignalWatcher{parent} , Singleton{this} {