Merge pull request #578 from ZobyTwo/deck_viewer_1

Reset positions and filters when reopening the editor. These changes are trivial so I will merge them.
This commit is contained in:
ZobyTwo
2013-12-07 11:53:16 -08:00
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;