Reset positions and filters when reopening the editor

This commit is contained in:
Tobias Loose
2013-12-07 20:44:23 +01:00
parent ee217e94a8
commit bdd0e6c042
2 changed files with 3 additions and 0 deletions

View File

@@ -70,6 +70,8 @@ bool DeckView::ButtonPressed(Buttons button)
void DeckView::SetDeck(DeckDataWrapper *toShow)
{
mCurrentDeck = toShow;
dirtyCardPos = true;
dirtyFilters = true;
reloadIndexes();
}

View File

@@ -167,6 +167,7 @@ void GameStateDeckViewer::Start()
myCollection = NEW DeckDataWrapper(playerdata->collection);
myCollection->Sort(WSrcCards::SORT_ALPHA);
setupView(mCurrentView, myCollection);
toggleDeckButton->setText("View Deck");
//Icons
mIcons = manaIcons;