From 165da677edbbf6c2f776c7856ef7c1a18809f624 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 14 Jan 2024 14:36:02 +1000 Subject: [PATCH] Qt: Use native path separators for block dump --- pcsx2-qt/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 5c2fbd0526..cf817184a9 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -614,13 +614,13 @@ void MainWindow::onBlockDumpActionToggled(bool checked) if (!checked) return; - std::string old_directory(Host::GetBaseStringSettingValue("EmuCore", "BlockDumpSaveDirectory", "")); + std::string old_directory = Host::GetBaseStringSettingValue("EmuCore", "BlockDumpSaveDirectory", ""); if (old_directory.empty()) old_directory = FileSystem::GetWorkingDirectory(); // prompt for a location to save - const QString new_dir( - QFileDialog::getExistingDirectory(this, tr("Select location to save block dump:"), QString::fromStdString(old_directory))); + const QString new_dir(QDir::toNativeSeparators( + QFileDialog::getExistingDirectory(this, tr("Select location to save block dump:"), QString::fromStdString(old_directory)))); if (new_dir.isEmpty()) { // disable it again