mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Reset mapDescription scrolling position on change of map / save
This one fixes bug #1974
This commit is contained in:
parent
53c7a3cfcb
commit
0e346a4f0d
@ -2171,6 +2171,10 @@ void InfoCard::changeSelection( const CMapInfo *to )
|
||||
else
|
||||
mapDescription->setText(to->mapHeader->description);
|
||||
|
||||
mapDescription->label->scrollTextTo(0);
|
||||
if (mapDescription->slider)
|
||||
mapDescription->slider->moveToMin();
|
||||
|
||||
if(SEL->screenType != CMenuScreen::newGame && SEL->screenType != CMenuScreen::campaignList) {
|
||||
//difficulty->block(true);
|
||||
difficulty->setSelected(SEL->sInfo.difficulty);
|
||||
|
Loading…
x
Reference in New Issue
Block a user