mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-13 22:12:15 -07:00
[DeckList] Disable copy constructor
Took 1 hour 44 minutes Took 1 minute # Commit time for manual adjustment: # Took 28 seconds Took 33 seconds
This commit is contained in:
parent
8788a7aada
commit
9260bebd1c
21 changed files with 162 additions and 105 deletions
|
|
@ -533,14 +533,14 @@ void DeckListModel::cleanList()
|
|||
}
|
||||
|
||||
/**
|
||||
* @param _deck The deck. Takes ownership of the object
|
||||
* @param _deck The deck.
|
||||
*/
|
||||
void DeckListModel::setDeckList(DeckList *_deck)
|
||||
{
|
||||
deckList->deleteLater();
|
||||
deckList = _deck;
|
||||
deckList->setParent(this);
|
||||
rebuildTree();
|
||||
if (deckList != _deck) {
|
||||
deckList = _deck;
|
||||
rebuildTree();
|
||||
}
|
||||
}
|
||||
|
||||
QList<ExactCard> DeckListModel::getCards() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue