diff options
| author | Tannin <devnull@localhost> | 2014-01-29 21:06:55 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-01-29 21:06:55 +0100 |
| commit | 48c944c737a0e277c3ac85c10008031f39cbc04c (patch) | |
| tree | 441446876a7a759f4d2febea5f8f0368e3874170 /src/spawn.cpp | |
| parent | af50eedbe275062eda933ccc200be66a9d3ee94d (diff) | |
- bugfix: elevation dialog didn't offer a "yes" option
- bugfix: python plugins crashed the application when trying to create a nexus bridge
- bugfix: python plugins couldn't register for failed requests correctly
Diffstat (limited to 'src/spawn.cpp')
| -rw-r--r-- | src/spawn.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp index 5639a78c..b1c5e963 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -117,9 +117,10 @@ HANDLE startBinary(const QFileInfo &binary, const QString &arguments, const QStr "can be installed to work without elevation.\n\n" "Start elevated anyway? " "(you will be asked if you want to allow ModOrganizer.exe to make changes to the system)").arg( - QDir::toNativeSeparators(binary.absoluteFilePath()))) == QMessageBox::Yes) { + QDir::toNativeSeparators(binary.absoluteFilePath())), + QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { ::ShellExecuteW(NULL, L"runas", ToWString(QCoreApplication::applicationFilePath()).c_str(), - (binaryName + L" " + ToWString(arguments)).c_str(), currentDirectoryName.c_str(), SW_SHOWNORMAL); + (std::wstring(L"\"") + binaryName + L"\" " + ToWString(arguments)).c_str(), currentDirectoryName.c_str(), SW_SHOWNORMAL); return INVALID_HANDLE_VALUE; } else { return INVALID_HANDLE_VALUE; |
