Skip to content

Commit 2794d3d

Browse files
XhmikosRdanmar
authored andcommitted
add Notepad2/Notepad2-mod in the application's list
1 parent d69293a commit 2794d3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gui/applicationlist.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ bool ApplicationList::FindDefaultWindowsEditor()
196196
return true;
197197
}
198198

199+
const QString notepadTwoPath = appPath + "\\Notepad2\\Notepad2.exe";
200+
if (QFileInfo(notepadTwoPath).isExecutable()) {
201+
Application app;
202+
app.setName("Notepad2");
203+
app.setPath("\"" + notepadTwoPath + "\"");
204+
app.setParameters("/g (line) (file)");
205+
AddApplication(app);
206+
return true;
207+
}
208+
199209
const QString windowsPath(getenv("windir"));
200210
const QString notepadPath = windowsPath + "\\system32\\notepad.exe";
201211
if (QFileInfo(notepadPath).isExecutable()) {

0 commit comments

Comments
 (0)