mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
Qt: Canonicalize memory card paths in settings
This commit is contained in:
parent
09e7a5843f
commit
0e6efb2241
|
@ -191,7 +191,7 @@ void MemoryCardSettingsWidget::updateMemoryCardPath(int index)
|
||||||
std::string path(
|
std::string path(
|
||||||
m_dialog->getEffectiveStringValue("MemoryCards", key, Settings::GetDefaultSharedMemoryCardName(index).c_str()));
|
m_dialog->getEffectiveStringValue("MemoryCards", key, Settings::GetDefaultSharedMemoryCardName(index).c_str()));
|
||||||
if (!Path::IsAbsolute(path))
|
if (!Path::IsAbsolute(path))
|
||||||
path = Path::Combine(EmuFolders::MemoryCards, path);
|
path = Path::Canonicalize(Path::Combine(EmuFolders::MemoryCards, path));
|
||||||
|
|
||||||
QSignalBlocker db(m_port_ui[index].memory_card_path);
|
QSignalBlocker db(m_port_ui[index].memory_card_path);
|
||||||
m_port_ui[index].memory_card_path->setText(QString::fromStdString(path));
|
m_port_ui[index].memory_card_path->setText(QString::fromStdString(path));
|
||||||
|
|
Loading…
Reference in a new issue