Skip to content

Commit b4e3bb3

Browse files
dfaure-kdabWaqar144
authored andcommitted
List all IDEs on all platforms
They are all cross-platform anyway.
1 parent 58e80fb commit b4e3bb3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ui/mainwindow.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ struct IdeSettings
8383
};
8484

8585
static 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

Comments
 (0)