summaryrefslogtreecommitdiff
path: root/src/moapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/moapplication.cpp')
-rw-r--r--src/moapplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/moapplication.cpp b/src/moapplication.cpp
index e676436a..6e0d5003 100644
--- a/src/moapplication.cpp
+++ b/src/moapplication.cpp
@@ -158,6 +158,10 @@ MOApplication::MOApplication(int& argc, char** argv) : QApplication(argc, argv)
m_defaultStyle = "windowsvista";
updateStyle(m_defaultStyle);
addDllsToPath();
+
+ // When MO2 is launched by nxmhandler, CWD is set to `C:\Windows\System32`.
+ // QtWebEngineProcess crashes if CWD is not set to the application directory.
+ QDir::setCurrent(QCoreApplication::applicationDirPath());
}
OrganizerCore& MOApplication::core()