summaryrefslogtreecommitdiffhomepage
path: root/variant/default
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-20 19:59:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:10 +0100
commit6c2dbc95c317b94c82b909aeddef82c2c33116ff (patch)
tree8136c05808b9b6668d69c2b5c2a3c35cfa9899aa /variant/default
parentdeb301619d3d6ade1023d0a2b234a9d948a6dbd0 (diff)
cruft
Diffstat (limited to 'variant/default')
-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)
{