From 056acd03cd79700e40a09d901188152ef9a080bb Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 12 Apr 2015 15:39:16 +0200 Subject: bugfix: when using a user-selected game path that path wasn't use for auto-detecting executables --- src/main.cpp | 8 +++++--- 1 file 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(); -- cgit v1.3.1