From c9daab71bfee9204ae712d5bf05256cf6619a216 Mon Sep 17 00:00:00 2001 From: pazos Date: Tue, 8 May 2018 18:15:26 +0200 Subject: [PATCH] don't use cmdline arguments as daemon arguments --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index ab232156..cd20432a 100644 --- a/main.cpp +++ b/main.cpp @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) // Exclude daemon manager from IOS #ifndef Q_OS_IOS - const QStringList arguments = QCoreApplication::arguments(); + const QStringList arguments = (QStringList) QCoreApplication::arguments().at(0); DaemonManager * daemonManager = DaemonManager::instance(&arguments); engine.rootContext()->setContextProperty("daemonManager", daemonManager); #endif