From b352f61f136f21854b3da5b76d49fe45cbb2d3fd Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 24 Dec 2015 10:36:56 +0100 Subject: if not being run interactively, then use the main app loop QEventLoop requires QCoreApplication is running; so when we don't have one running the whole app, just start/stop the core app on demand (from/for commands). --- akonadish/state.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'akonadish/state.h') diff --git a/akonadish/state.h b/akonadish/state.h index eb07f56..1ba86dd 100644 --- a/akonadish/state.h +++ b/akonadish/state.h @@ -36,6 +36,8 @@ public: int commandStarted() const; void commandFinished(int returnCode = 0) const; + static void setHasEventLoop(bool evented); + private: class Private; Private * const d; -- cgit v1.2.3