diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2017-11-11 21:00:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-11 21:00:28 +0200 |
| commit | 7ec0b79eb49a27a3516d799a80d57000cde344da (patch) | |
| tree | ebeb0df63abe6ec3dc504841022115f4c198a1e2 /src/main.cpp | |
| parent | 58e17777de27facbfcc8261b694774da82d6564c (diff) | |
| parent | 3974ddced4e02866c6548066d0c546f3cf6d77db (diff) | |
Merge pull request #126 from Al12rs/QT5.7
Fix for MO finding the wrong game to manage.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d14641a4..526563a2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -318,6 +318,9 @@ MOBase::IPluginGame *determineCurrentGame(QString const &moPath, QSettings &sett }
}
+ //The following code would try to determine the right game to mange but it would usually find the wrong one
+ //so it was commented out.
+ /*
//OK, we are in a new setup or existing info is useless.
//See if MO has been installed inside a game directory
for (IPluginGame * const game : plugins.plugins<IPluginGame>()) {
@@ -341,6 +344,7 @@ MOBase::IPluginGame *determineCurrentGame(QString const &moPath, QSettings &sett //OK, chop off the last directory and try again
} while (gameDir.cdUp());
}
+ */
//Then try a selection dialogue.
if (!gamePath.isEmpty() || !gameName.isEmpty()) {
|
