From: Martin Sandsmark Date: Tue, 17 Dec 2013 15:26:39 +0000 (+0100) Subject: Fix notifications when minimized. X-Git-Tag: 0.10-beta1~75 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=fd97519376748925efe765d138ad5af637d809bd 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 5460a345..9019e24c 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -657,7 +657,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;