mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-09 23:42:03 +02:00
* When sorting/filtering is applied during map selection the first map in the list is selected.
This commit is contained in:
@@ -400,6 +400,7 @@ void SelectionTab::filter( int size, bool selectFirst )
|
|||||||
slider->moveTo(0);
|
slider->moveTo(0);
|
||||||
onSelect(curItems[0]);
|
onSelect(curItems[0]);
|
||||||
}
|
}
|
||||||
|
selectAbs(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -578,6 +579,8 @@ void SelectionTab::sortBy( int criteria )
|
|||||||
ascending = true;
|
ascending = true;
|
||||||
}
|
}
|
||||||
sort();
|
sort();
|
||||||
|
|
||||||
|
selectAbs(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectionTab::sort()
|
void SelectionTab::sort()
|
||||||
|
|||||||
Reference in New Issue
Block a user