mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Don't search games when the dialog is cancelled
This commit is contained in:
parent
e9713f9635
commit
a7da245656
1 changed files with 8 additions and 3 deletions
|
@ -2424,10 +2424,15 @@ void main_window::CreateConnects()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList paths;
|
|
||||||
|
|
||||||
// Only select one folder for now
|
// Only select one folder for now
|
||||||
paths << QFileDialog::getExistingDirectory(this, tr("Select a folder containing one or more games"), qstr(fs::get_config_dir()), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
QString dir = QFileDialog::getExistingDirectory(this, tr("Select a folder containing one or more games"), qstr(fs::get_config_dir()), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
||||||
|
if (dir.isEmpty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QStringList paths;
|
||||||
|
paths << dir;
|
||||||
AddGamesFromDirs(std::move(paths));
|
AddGamesFromDirs(std::move(paths));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue