diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-02-25 08:54:51 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-02-25 08:54:51 -0600 |
| commit | 249745c6b1e4d1069aada650bd754438d81f9787 (patch) | |
| tree | 16c3f0f60eb4177ca1437f707f69d90d92171df4 | |
| parent | 667ef70cc89e52b6f5ae5897d79cefdda3cc0e16 (diff) | |
Don't show unrelated paths when browsing for game
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<IPluginGame *>()); |
