fixed deck editor bug
This commit is contained in:
parent
244b244bff
commit
bf868d5abc
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ DeckListModel::DeckListModel(CardDatabase *_db, QObject *parent)
|
|||
|
||||
DeckListModel::~DeckListModel()
|
||||
{
|
||||
delete root;
|
||||
}
|
||||
|
||||
|
||||
|
@ -283,6 +284,7 @@ void DeckListModel::sort(int /*column*/, Qt::SortOrder order)
|
|||
|
||||
void DeckListModel::cleanList()
|
||||
{
|
||||
root->clearTree();
|
||||
deckList->cleanList();
|
||||
reset();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue