summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-07 20:43:52 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-07 20:43:52 +0200
commit2339e7f5e0c048a82782556ee240d74c2ba788db (patch)
treeb9cc7ac770e867f9dcf08773eb948455a0471a2b
parent4fd27d0f8f1fd7dd21e35558bd9941435267d35d (diff)
fixup! Make sure QtLooper doesn't use QSocketNotifier before QApplication is created
Allow sockets added after init to work
-rw-r--r--src/gui_qt.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui_qt.cc b/src/gui_qt.cc
index 1d81bd6..9041006 100644
--- a/src/gui_qt.cc
+++ b/src/gui_qt.cc
@@ -2013,6 +2013,7 @@ private:
};
void init() {
+ init_ = true;
for (auto& pair : fds_) {
pair.second->init();
}