Qt: Use native separators for open disc

This commit is contained in:
Connor McLaughlin 2021-05-15 12:28:13 +10:00
parent fd462ab778
commit 5853588a52

View file

@ -468,8 +468,8 @@ void MainWindow::onApplicationStateChanged(Qt::ApplicationState state)
void MainWindow::onStartDiscActionTriggered()
{
QString filename =
QFileDialog::getOpenFileName(this, tr("Select Disc Image"), QString(), tr(DISC_IMAGE_FILTER), nullptr);
QString filename = QDir::toNativeSeparators(
QFileDialog::getOpenFileName(this, tr("Select Disc Image"), QString(), tr(DISC_IMAGE_FILTER), nullptr));
if (filename.isEmpty())
return;