mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +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(
|
||||
m_dialog->getEffectiveStringValue("MemoryCards", key, Settings::GetDefaultSharedMemoryCardName(index).c_str()));
|
||||
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);
|
||||
m_port_ui[index].memory_card_path->setText(QString::fromStdString(path));
|
||||
|
|
Loading…
Reference in a new issue