From d4aff201bfe8b48fd694450f4344c80b7e979575 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Mon, 30 Dec 2024 17:52:05 -0800 Subject: [PATCH] don't reset selection after each action --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index 90c022f08..b3eee1ff0 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -1328,7 +1328,6 @@ void TabDeckEditor::offsetCountAtIndex(const QModelIndex &idx, int offset) const QModelIndex numberIndex = idx.sibling(idx.row(), 0); const int count = deckModel->data(numberIndex, Qt::EditRole).toInt(); const int new_count = count + offset; - deckView->setCurrentIndex(numberIndex); if (new_count <= 0) deckModel->removeRow(idx.row(), idx.parent()); else