Merge pull request #622 from ggrtk/qt-gamelistsettings

Qt/GameListSettings: Use native path separators
This commit is contained in:
Connor McLaughlin 2020-07-19 12:58:00 +10:00 committed by GitHub
commit f67862de5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,9 @@ void GameListSettingsWidget::onDirectoryListItemClicked(const QModelIndex& index
void GameListSettingsWidget::addSearchDirectory(QWidget* parent_widget)
{
QString dir = QFileDialog::getExistingDirectory(parent_widget, tr("Select Search Directory"));
QString dir =
QDir::toNativeSeparators(QFileDialog::getExistingDirectory(parent_widget, tr("Select Search Directory")));
if (dir.isEmpty())
return;