mirror of https://github.com/PCSX2/pcsx2.git
Qt: Use native path separators for block dump
This commit is contained in:
parent
0bbde2ca52
commit
165da677ed
|
@ -614,13 +614,13 @@ void MainWindow::onBlockDumpActionToggled(bool checked)
|
||||||
if (!checked)
|
if (!checked)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::string old_directory(Host::GetBaseStringSettingValue("EmuCore", "BlockDumpSaveDirectory", ""));
|
std::string old_directory = Host::GetBaseStringSettingValue("EmuCore", "BlockDumpSaveDirectory", "");
|
||||||
if (old_directory.empty())
|
if (old_directory.empty())
|
||||||
old_directory = FileSystem::GetWorkingDirectory();
|
old_directory = FileSystem::GetWorkingDirectory();
|
||||||
|
|
||||||
// prompt for a location to save
|
// prompt for a location to save
|
||||||
const QString new_dir(
|
const QString new_dir(QDir::toNativeSeparators(
|
||||||
QFileDialog::getExistingDirectory(this, tr("Select location to save block dump:"), QString::fromStdString(old_directory)));
|
QFileDialog::getExistingDirectory(this, tr("Select location to save block dump:"), QString::fromStdString(old_directory))));
|
||||||
if (new_dir.isEmpty())
|
if (new_dir.isEmpty())
|
||||||
{
|
{
|
||||||
// disable it again
|
// disable it again
|
||||||
|
|
Loading…
Reference in New Issue