From bc8766d234d05418011161bb3244d60657d2b7cb Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Sun, 14 May 2017 19:32:55 +0200 Subject: [PATCH] A bugfix in QHotkey --- QHotkey | 2 +- main.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/QHotkey b/QHotkey index 7c4ef6a..9eace8f 160000 --- a/QHotkey +++ b/QHotkey @@ -1 +1 @@ -Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad +Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490 diff --git a/main.cpp b/main.cpp index 718d139..cb36d38 100644 --- a/main.cpp +++ b/main.cpp @@ -46,9 +46,6 @@ int main(int argc, char *argv[]) { verbose = parser.isSet(v); MainWindow w; - w.show(); - QTimer::singleShot(0, [&] { - if (parser.isSet(h)) w.hide(); - }); + if (!parser.isSet(h)) w.show(); return a.exec(); }