GUI: Failed to start default Notepad++.

Notepad++ found and set as editor by default failed to start. There
were no quotation marks around path containing space chars.
This commit is contained in:
Kimmo Varis 2010-10-28 22:54:30 +03:00
parent d2182dbd3e
commit 16fe2f8802
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void ApplicationList::LoadSettings(QSettings *programSettings)
const QString appPath(getenv("ProgramFiles")); const QString appPath(getenv("ProgramFiles"));
if (!appPath.isNull() && QFileInfo(appPath + "\\Notepad++\\notepad++.exe").isExecutable()) if (!appPath.isNull() && QFileInfo(appPath + "\\Notepad++\\notepad++.exe").isExecutable())
{ {
AddApplicationType("Notepad++", QString(appPath) + "\\Notepad++\\notepad++.exe -n(line) (file)"); AddApplicationType("Notepad++", "\"" + QString(appPath) + "\\Notepad++\\notepad++.exe\" -n(line) (file)");
break; break;
} }
} }