summaryrefslogtreecommitdiffhomepage
path: root/variant
diff options
context:
space:
mode:
Diffstat (limited to 'variant')
-rw-r--r--variant/default/main-window.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp
index 5cb1af42..7b2456e8 100644
--- a/variant/default/main-window.cpp
+++ b/variant/default/main-window.cpp
@@ -855,12 +855,7 @@ void main_window::toggle_restore_from_tray(QSystemTrayIcon::ActivationReason e)
setVisible(is_minimized);
setHidden(!is_minimized);
- setWindowState(typed_progn(Qt::WindowStates,
- if (is_minimized)
- return windowState() & ~Qt::WindowMinimized;
- else
- return Qt::WindowNoState;
- ));
+ setWindowState(is_minimized ? windowState() & ~Qt::WindowMinimized : Qt::WindowNoState);
if (is_minimized)
{