don't use cmdline arguments as daemon arguments

This commit is contained in:
pazos 2018-05-08 18:15:26 +02:00
parent 92582a9785
commit c9daab71bf

View file

@ -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