diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2026-04-27 04:43:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 21:43:16 -0500 |
| commit | f80ad0435c904731c8d749fa0c71287413e950a8 (patch) | |
| tree | 1f5ce4cf7d59b4f9e03c0c8782e5c2734e1d304b | |
| parent | 925bade3157900303a45fff3b64e64ed9ee5b0d8 (diff) | |
fix crash when CWD is not set to app directory (#2379)
| -rw-r--r-- | src/moapplication.cpp | 4 |
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() |
