Qt/GameCubePane: Fix memcard browsing starting in working directory instead of User/GC/ directory

This commit is contained in:
Techjar 2018-06-14 09:11:54 -04:00
parent 1d87584d69
commit 027fc6efd5
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ void GameCubePane::OnConfigPressed(int slot)
}
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()))
return;