mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 17:44:48 -07:00
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()
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue