From: Rafał Długołęcki Date: Mon, 25 Jan 2016 00:52:11 +0000 (+0100) Subject: Fix toggling of info messages X-Git-Tag: 3.4-b1~49 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=04e7e1a3f1c7d3d278e167a7bbac3062801c8de5;p=vlp.git Fix toggling of info messages --- diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index 3e3d41b..43f4efa 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -853,9 +853,8 @@ void QKernel::WriteMessage(char *msg) void QKernel::on_actionInfo_messages_triggered() { if (toolsMenu != NULL) { - info_messages = !actionInfo_messages->isChecked(); + info_messages = actionInfo_messages->isChecked(); actionInfo_messages->setChecked(info_messages); - fprintf(stderr, "Info is checked? %s\n", info_messages ? "yes" : "no"); } }