Qt: remove uncritical deprecated notes and titles

This also fixes a savedata notes bug.
The detail section notes were always taken from the deprecated settings.
This commit is contained in:
Megamouse 2021-04-16 20:53:12 +02:00
parent bff938ccf5
commit 27975e9dfd
4 changed files with 11 additions and 49 deletions

View file

@ -180,20 +180,7 @@ void save_data_list_dialog::UpdateList()
m_list->clearContents();
m_list->setRowCount(::narrow<int>(m_save_entries.size()));
QVariantMap notes = m_persistent_settings->GetValue(gui::persistent::save_notes).toMap();
// Find deprecated values (older than August 2nd 2020)
if (notes.isEmpty())
{
notes = m_gui_settings->GetValue(gui::m_saveNotes).toMap();
m_gui_settings->RemoveValue(gui::m_saveNotes);
// Move to persistent settings
if (!notes.isEmpty())
{
m_persistent_settings->SetValue(gui::persistent::save_notes, notes);
}
}
const QVariantMap notes = m_persistent_settings->GetValue(gui::persistent::save_notes).toMap();
int row = 0;
for (const SaveDataEntry& entry: m_save_entries)