Skip to content

Commit 16fe2f8

Browse files
committed
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.
1 parent d2182db commit 16fe2f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gui/applicationlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void ApplicationList::LoadSettings(QSettings *programSettings)
5959
const QString appPath(getenv("ProgramFiles"));
6060
if (!appPath.isNull() && QFileInfo(appPath + "\\Notepad++\\notepad++.exe").isExecutable())
6161
{
62-
AddApplicationType("Notepad++", QString(appPath) + "\\Notepad++\\notepad++.exe -n(line) (file)");
62+
AddApplicationType("Notepad++", "\"" + QString(appPath) + "\\Notepad++\\notepad++.exe\" -n(line) (file)");
6363
break;
6464
}
6565
}

0 commit comments

Comments
 (0)