fixed deck editor bug

This commit is contained in:
Max-Wilhelm Bruker 2009-07-02 15:40:44 +02:00
parent 244b244bff
commit bf868d5abc

View file

@ -19,6 +19,7 @@ DeckListModel::DeckListModel(CardDatabase *_db, QObject *parent)
DeckListModel::~DeckListModel() DeckListModel::~DeckListModel()
{ {
delete root;
} }
@ -283,6 +284,7 @@ void DeckListModel::sort(int /*column*/, Qt::SortOrder order)
void DeckListModel::cleanList() void DeckListModel::cleanList()
{ {
root->clearTree();
deckList->cleanList(); deckList->cleanList();
reset(); reset();
} }