mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[DeckEditor] Fix undo/redo resetting deck sorting (#6673)
This commit is contained in:
parent
fd293444c5
commit
15a1d5440b
1 changed files with 2 additions and 0 deletions
|
|
@ -320,6 +320,7 @@ void DeckStateManager::undo(int steps)
|
||||||
deckListModel->rebuildTree();
|
deckListModel->rebuildTree();
|
||||||
|
|
||||||
emit deckListModel->layoutChanged();
|
emit deckListModel->layoutChanged();
|
||||||
|
emit deckReplaced();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckStateManager::redo(int steps)
|
void DeckStateManager::redo(int steps)
|
||||||
|
|
@ -338,6 +339,7 @@ void DeckStateManager::redo(int steps)
|
||||||
deckListModel->rebuildTree();
|
deckListModel->rebuildTree();
|
||||||
|
|
||||||
emit deckListModel->layoutChanged();
|
emit deckListModel->layoutChanged();
|
||||||
|
emit deckReplaced();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckStateManager::requestHistorySave(const QString &reason)
|
void DeckStateManager::requestHistorySave(const QString &reason)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue