Fix deleting stamps not working

This commit is contained in:
jacob1 2019-09-13 00:35:36 -04:00
parent da5f8068c0
commit 88d165fb24

View File

@ -191,7 +191,7 @@ void LocalBrowserView::NotifySavesListChanged(LocalBrowserModel * sender)
void SelectedCallback(ui::SaveButton * sender) override void SelectedCallback(ui::SaveButton * sender) override
{ {
if(sender->GetSaveFile()) if(sender->GetSaveFile())
v->c->Selected(sender->GetSaveFile()->GetName(), sender->GetSelected()); v->c->Selected(sender->GetSaveFile()->GetDisplayName().ToUtf8(), sender->GetSelected());
} }
}; };
for (size_t i = 0; i < saves.size(); i++) for (size_t i = 0; i < saves.size(); i++)
@ -227,7 +227,7 @@ void LocalBrowserView::NotifySelectedChanged(LocalBrowserModel * sender)
stampButtons[j]->SetSelected(false); stampButtons[j]->SetSelected(false);
for (size_t i = 0; i < selected.size(); i++) for (size_t i = 0; i < selected.size(); i++)
{ {
if (stampButtons[j]->GetSaveFile()->GetName()==selected[i]) if (stampButtons[j]->GetSaveFile()->GetDisplayName().ToUtf8() == selected[i])
stampButtons[j]->SetSelected(true); stampButtons[j]->SetSelected(true);
} }
} }