Merge pull request #7114 from Techjar/patch-3

Qt/GameCubePane: Fix memcard browsing starting in working directory instead of User/GC/ directory
This commit is contained in:
spycrab 2018-06-14 16:13:21 +02:00 committed by GitHub
commit e69c6cdaab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ void GameCubePane::OnConfigPressed(int slot)
} }
QString filename = QString filename =
QFileDialog::getOpenFileName(this, tr("Choose a file to open"), QStringLiteral(""), filter); QFileDialog::getOpenFileName(this, tr("Choose a file to open"),
QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)), filter);
if (filename.isEmpty() || !File::Exists(filename.toStdString())) if (filename.isEmpty() || !File::Exists(filename.toStdString()))
return; return;