Commit bf868d5a authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

fixed deck editor bug

parent 244b244b
...@@ -19,6 +19,7 @@ DeckListModel::DeckListModel(CardDatabase *_db, QObject *parent) ...@@ -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) ...@@ -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();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment