aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-03-05 23:52:12 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-03-05 23:52:12 +0530
commit3e96cc6bbade480376ab9d554318a1233578d323 (patch)
treee22f26db3bc0fc9dd59eac8fcfdd4f7418031b8f /src
parent21940ee605e23bed4fcfd944f49a39f5d164d70b (diff)
downloadwhatsie-3e96cc6bbade480376ab9d554318a1233578d323.tar.gz
whatsie-3e96cc6bbade480376ab9d554318a1233578d323.zip
fix qcf
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7f94a3d..0a069fc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,6 +21,12 @@ int main(int argc, char *argv[]) {
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
}
+#ifdef QT_DEBUG
+ qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--remote-debugging-port=9421");
+#endif
+ qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-logging --single-process");
+
+
QApplication app(argc, argv);
app.setWindowIcon(QIcon(":/icons/app/icon-256.png"));
@@ -40,12 +46,6 @@ int main(int argc, char *argv[]) {
}
#endif
- qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--single-process");
-#ifdef QT_DEBUG
- qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--remote-debugging-port=9421");
-#endif
- qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-logging");
-
QWebEngineSettings::defaultSettings()->setAttribute(
QWebEngineSettings::PluginsEnabled, true);
QWebEngineSettings::defaultSettings()->setAttribute(