summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-27 13:49:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-27 16:43:02 +0200
commite4fa5befb61e8e611da2a8dbac2dd0153230f910 (patch)
tree23dc524c034c26fb1322aa481925baabfba4bc55 /gui/main-window.hpp
parentf0230b9718f928717c977c7a7407dcc893056673 (diff)
gui/main-window: annoy when running as root
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r--gui/main-window.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/main-window.hpp b/gui/main-window.hpp
index f992b218..8b0144b8 100644
--- a/gui/main-window.hpp
+++ b/gui/main-window.hpp
@@ -97,6 +97,9 @@ class MainWindow : public QMainWindow, private State
void closeEvent(QCloseEvent*) override;
bool event(QEvent *event) override;
bool maybe_hide_to_tray(QEvent* e);
+#if !defined _WIN32 && !defined __APPLE__
+ void annoy_if_root();
+#endif
// only use in impl file since no definition in header!
template<typename t>