From fd97519376748925efe765d138ad5af637d809bd Mon Sep 17 00:00:00 2001 From: Martin Sandsmark Date: Tue, 17 Dec 2013 16:26:39 +0100 Subject: [PATCH 1/1] 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 --- src/qtui/mainwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1