File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,5 +229,28 @@ bool ApplicationList::findDefaultWindowsEditor()
229229 if (!qtCreatorRegistry.isEmpty () && checkAndAddApplication (qtCreatorPath, " Qt Creator" , " -client (file):(line)" )) {
230230 foundOne = true ;
231231 }
232+
233+ const QString regPathUEdit32 = " HKEY_CLASSES_ROOT\\ Applications\\ Uedit32.exe\\ shell\\ open\\ Command" ;
234+ const QSettings registryUEdit32 (regPathUEdit32, QSettings::NativeFormat);
235+ const QString uedit32Registry = registryUEdit32.value (" Default" , QString ()).toString ();
236+ if (!uedit32Registry.isEmpty ()) {
237+ // Extract path to executable and make sure there is no single quotation mark at the beginning
238+ const QString uedit32Path = uedit32Registry.left (uedit32Registry.indexOf (" .exe" ) + 4 ).replace (" \" " , " " );
239+ if (checkAndAddApplication (uedit32Path, " UltraEdit 32" , " (file)/(line)" )) {
240+ foundOne = true ;
241+ }
242+ }
243+
244+ const QString regPathUEdit64 = " HKEY_CLASSES_ROOT\\ Applications\\ uedit64.exe\\ shell\\ open\\ Command" ;
245+ const QSettings registryUEdit64 (regPathUEdit64, QSettings::NativeFormat);
246+ const QString uedit64Registry = registryUEdit64.value (" Default" , QString ()).toString ();
247+ if (!uedit64Registry.isEmpty ()) {
248+ // Extract path to executable and make sure there is no single quotation mark at the beginning
249+ const QString uedit64Path = uedit64Registry.left (uedit64Registry.indexOf (" .exe" ) + 4 ).replace (" \" " , " " );
250+ if (checkAndAddApplication (uedit64Path, " UltraEdit 64" , " (file)/(line)" )) {
251+ foundOne = true ;
252+ }
253+ }
254+
232255 return foundOne;
233256}
You can’t perform that action at this time.
0 commit comments