Skip to content

Commit

Permalink
Qt: Canonicalize memory card paths in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 31, 2023
1 parent 09e7a58 commit 0e6efb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duckstation-qt/memorycardsettingswidget.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 0e6efb2

Please sign in to comment.