aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 9606ad7a..7a454140 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -164,10 +164,10 @@ int main(int argc, char *argv[])
isOpenGL = false;
// disable "QApplication: invalid style override passed" warning
- if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
+ if (isDesktop) qputenv("QT_STYLE_OVERRIDE", "fusion");
#ifdef Q_OS_LINUX
// force platform xcb
- if (isDesktop) putenv((char*)"QT_QPA_PLATFORM=xcb");
+ if (isDesktop) qputenv("QT_QPA_PLATFORM", "xcb");
#endif
// enable High DPI scaling
@@ -393,8 +393,7 @@ int main(int argc, char *argv[])
// Exclude daemon manager from IOS
#ifndef Q_OS_IOS
- const QStringList arguments = (QStringList) QCoreApplication::arguments().at(0);
- DaemonManager * daemonManager = DaemonManager::instance(&arguments);
+ DaemonManager * daemonManager = DaemonManager::instance();
engine.rootContext()->setContextProperty("daemonManager", daemonManager);
#endif