mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-15 04:26:07 -05:00
fixed deck editor bug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user