From 249745c6b1e4d1069aada650bd754438d81f9787 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Mon, 25 Feb 2019 08:54:51 -0600 Subject: Don't show unrelated paths when browsing for game --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a8942b1a..f5490592 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -387,8 +387,7 @@ MOBase::IPluginGame *determineCurrentGame(QString const &moPath, QSettings &sett if (possibleGames.count() > 1) { SelectionDialog browseSelection(QObject::tr("Please select the game to manage"), nullptr, QSize(32, 32)); for (IPluginGame *game : possibleGames) { - QString path = game->gameDirectory().absolutePath(); - browseSelection.addChoice(game->gameIcon(), game->gameName(), path, QVariant::fromValue(game)); + browseSelection.addChoice(game->gameIcon(), game->gameName(), gamePath, QVariant::fromValue(game)); } if (browseSelection.exec() == QDialog::Accepted) { return selectGame(settings, gameDir, browseSelection.getChoiceData().value()); -- cgit v1.3.1