Fix toggling of info messages
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 25 Jan 2016 00:52:11 +0000 (01:52 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Mon, 25 Jan 2016 00:52:11 +0000 (01:52 +0100)
src/kernel/kernel.cpp

index 3e3d41be93e347d862ae373e4732c0d4f19fe6bb..43f4efae145864ed7b35f0e865a1cf970ec03f99 100644 (file)
@@ -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");
        }
 }