Qt/GameListSettings: Use native path separators

Fixes possible duplicate game list entries on Windows.
This commit is contained in:
Albert Liu 2020-07-17 18:43:30 -07:00
parent 1069e12bff
commit 2853bf851a

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;