From 16fe2f8802dfefbbd5b2ed726acb92c6ad491648 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 28 Oct 2010 22:54:30 +0300 Subject: [PATCH] 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. --- gui/applicationlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/applicationlist.cpp b/gui/applicationlist.cpp index 9a3d276bb..b3e0bde46 100644 --- a/gui/applicationlist.cpp +++ b/gui/applicationlist.cpp @@ -59,7 +59,7 @@ void ApplicationList::LoadSettings(QSettings *programSettings) const QString appPath(getenv("ProgramFiles")); 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; } }