From: Martin Sandsmark Date: Tue, 17 Dec 2013 15:26:39 +0000 (+0100) Subject: Fix notifications when minimized. X-Git-Tag: 0.9.3~16 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e5729ea1e89934d0fde5883d6f41b2126b7b39d6 Fix notifications when minimized. QWidget::isVisible() just checks if the widget has been explicitly hidden, not if it is minimized, covered, or whatnot. Fixes #1240 --- diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index a4be9fd9..a7306b83 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -652,7 +652,7 @@ void MainWin::removeBufferView(int bufferViewConfigId) void MainWin::bufferViewToggled(bool enabled) { - if (!enabled && !isVisible()) { + if (!enabled && !isMinimized()) { // hiding the mainwindow triggers a toggle of the bufferview (which pretty much sucks big time) // since this isn't our fault and we can't do anything about it, we suppress the resulting calls return;