mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Remember tags when cloning from other DeckList
This commit is contained in:
parent
8916e049bd
commit
eeffdb5e68
1 changed files with 2 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ DeckList::DeckList()
|
||||||
// TODO: https://qt-project.org/doc/qt-4.8/qobject.html#no-copy-constructor-or-assignment-operator
|
// TODO: https://qt-project.org/doc/qt-4.8/qobject.html#no-copy-constructor-or-assignment-operator
|
||||||
DeckList::DeckList(const DeckList &other)
|
DeckList::DeckList(const DeckList &other)
|
||||||
: QObject(), name(other.name), comments(other.comments), bannerCard(other.bannerCard), deckHash(other.deckHash),
|
: QObject(), name(other.name), comments(other.comments), bannerCard(other.bannerCard), deckHash(other.deckHash),
|
||||||
lastLoadedTimestamp(other.lastLoadedTimestamp)
|
lastLoadedTimestamp(other.lastLoadedTimestamp), tags(other.tags)
|
||||||
{
|
{
|
||||||
root = new InnerDecklistNode(other.getRoot());
|
root = new InnerDecklistNode(other.getRoot());
|
||||||
|
|
||||||
|
|
@ -807,6 +807,7 @@ void DeckList::cleanList()
|
||||||
root->clearTree();
|
root->clearTree();
|
||||||
setName();
|
setName();
|
||||||
setComments();
|
setComments();
|
||||||
|
setTags();
|
||||||
deckHash = QString();
|
deckHash = QString();
|
||||||
emit deckHashChanged();
|
emit deckHashChanged();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue