summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBrian Munro <brian.alexander.munro@gmail.com>2017-11-11 21:00:28 +0200
committerGitHub <noreply@github.com>2017-11-11 21:00:28 +0200
commit7ec0b79eb49a27a3516d799a80d57000cde344da (patch)
treeebeb0df63abe6ec3dc504841022115f4c198a1e2 /src/main.cpp
parent58e17777de27facbfcc8261b694774da82d6564c (diff)
parent3974ddced4e02866c6548066d0c546f3cf6d77db (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.cpp4
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()) {