mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Added missing redraw after selection update
This commit is contained in:
parent
90397a9604
commit
5134583111
@ -62,6 +62,7 @@ void CSavingScreen::changeSelection(std::shared_ptr<CMapInfo> to)
|
||||
|
||||
localMi = to;
|
||||
card->changeSelection();
|
||||
card->redraw();
|
||||
}
|
||||
|
||||
void CSavingScreen::saveGame()
|
||||
|
@ -415,11 +415,13 @@ void SelectionTab::select(int position)
|
||||
rememberCurrentSelection();
|
||||
|
||||
if(inputName && inputName->isActive())
|
||||
{
|
||||
{
|
||||
auto filename = *CResourceHandler::get("local")->getResourceName(ResourceID(curItems[py]->fileURI, EResType::CLIENT_SAVEGAME));
|
||||
inputName->setText(filename.stem().string());
|
||||
}
|
||||
|
||||
updateListItems();
|
||||
redraw();
|
||||
if(callOnSelect)
|
||||
callOnSelect(curItems[py]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user