diff options
| author | Tannin <devnull@localhost> | 2015-04-12 15:39:16 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-04-12 15:39:16 +0200 |
| commit | 056acd03cd79700e40a09d901188152ef9a080bb (patch) | |
| tree | 7f97401990a055aa4cc5d857cf54eb2821c52adf /src/main.cpp | |
| parent | 9eb1a303a7b750f69e1cf0cdf7518e09d6b62c2d (diff) | |
bugfix: when using a user-selected game path that path wasn't use for
auto-detecting executables
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1e25a39c..4d33b6ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -461,8 +461,10 @@ int main(int argc, char *argv[]) } else {
gamePath = QDir::cleanPath(selection.getChoiceData().toString());
if (gamePath.isEmpty()) {
- gamePath = QFileDialog::getExistingDirectory(nullptr, QObject::tr("Please select the game to manage"), QString(),
- QFileDialog::ShowDirsOnly);
+ gamePath = QFileDialog::getExistingDirectory(
+ nullptr, QObject::tr("Please select the game to manage"), QString(),
+ QFileDialog::ShowDirsOnly);
+ qDebug() << "manually selected path " << gamePath;
}
}
} else {
@@ -480,7 +482,7 @@ int main(int argc, char *argv[]) settings.setValue("gamePath", gamePath.toUtf8().constData());
}
- organizer.setManagedGame(ToQString(GameInfo::instance().getGameName()));
+ organizer.setManagedGame(ToQString(GameInfo::instance().getGameName()), gamePath);
organizer.createDefaultProfile();
|
