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

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;