@@ -83,7 +83,6 @@ struct IdeSettings
8383};
8484
8585static const IdeSettings ideSettings[] = {
86- #if !defined(Q_OS_WIN) && !defined(Q_OS_OSX)
8786 { " kdevelop" , " %f:%l:%c" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " KDevelop" ), " kdevelop" },
8887 { " kate" , " %f --line %l --column %c" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " Kate" ),
8988 " kate" },
@@ -93,7 +92,6 @@ static const IdeSettings ideSettings[] = {
9392 nullptr },
9493 { " gvim" , " %f +%l" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " gvim" ),
9594 nullptr },
96- #endif
9795 { " qtcreator" , " -client %f:%l:%c" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " Qt Creator" ), nullptr },
9896 { " code" , " -g %f:%l:%c" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " Visual Studio Code" ), nullptr },
9997 { " codium" , " -g %f:%l:%c" , QT_TRANSLATE_NOOP (" GammaRay::MainWindow" , " VSCodium" ), nullptr },
@@ -522,14 +520,11 @@ void MainWindow::navigateToCode(const QUrl &url, int lineNumber, int columnNumbe
522520 const auto ideIdx = settings.value (QStringLiteral (" IDE" ), IDE_SETTING_DEFAULT).toInt ();
523521
524522 QString command;
525- #if !defined(Q_OS_WIN) && !defined(Q_OS_OSX) // Remove this #if branch when adding real data to ideSettings for Windows/OSX.
526523 if (ideIdx >= 0 && ideIdx < ideSettingsSize) {
527524 command += ideSettings[ideIdx].app ;
528525 command += ' ' ;
529526 command += ideSettings[ideIdx].args ;
530- } else
531- #endif
532- if (ideIdx == IDE_SETTING_CUSTOM) {
527+ } else if (ideIdx == IDE_SETTING_CUSTOM) {
533528 command = settings.value (QStringLiteral (" CustomCommand" )).toString ();
534529 } else {
535530 QDesktopServices::openUrl (QUrl (url));
0 commit comments