mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Cleanup
This commit is contained in:
@@ -415,7 +415,7 @@ void SelectionTab::select(int position)
|
|||||||
rememberCurrentSelection();
|
rememberCurrentSelection();
|
||||||
|
|
||||||
if(inputName && inputName->isActive())
|
if(inputName && inputName->isActive())
|
||||||
{
|
{
|
||||||
auto filename = *CResourceHandler::get("local")->getResourceName(ResourceID(curItems[py]->fileURI, EResType::CLIENT_SAVEGAME));
|
auto filename = *CResourceHandler::get("local")->getResourceName(ResourceID(curItems[py]->fileURI, EResType::CLIENT_SAVEGAME));
|
||||||
inputName->setText(filename.stem().string());
|
inputName->setText(filename.stem().string());
|
||||||
}
|
}
|
||||||
@@ -444,9 +444,6 @@ void SelectionTab::updateListItems()
|
|||||||
// elemIdx is the index of the maps or saved game to display on line 0
|
// elemIdx is the index of the maps or saved game to display on line 0
|
||||||
// slider->capacity contains the number of available screen lines
|
// slider->capacity contains the number of available screen lines
|
||||||
// slider->positionsAmnt is the number of elements after filtering
|
// slider->positionsAmnt is the number of elements after filtering
|
||||||
|
|
||||||
logGlobal->trace("updateListItems called, selectionPos: %d", selectionPos);
|
|
||||||
|
|
||||||
int elemIdx = slider->getValue();
|
int elemIdx = slider->getValue();
|
||||||
for(auto item : listItems)
|
for(auto item : listItems)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user