don't reset selection after each action

This commit is contained in:
RickyRister 2024-12-30 17:52:05 -08:00
parent fd68cfdeeb
commit d4aff201bf

View file

@ -1328,7 +1328,6 @@ void TabDeckEditor::offsetCountAtIndex(const QModelIndex &idx, int offset)
const QModelIndex numberIndex = idx.sibling(idx.row(), 0); const QModelIndex numberIndex = idx.sibling(idx.row(), 0);
const int count = deckModel->data(numberIndex, Qt::EditRole).toInt(); const int count = deckModel->data(numberIndex, Qt::EditRole).toInt();
const int new_count = count + offset; const int new_count = count + offset;
deckView->setCurrentIndex(numberIndex);
if (new_count <= 0) if (new_count <= 0)
deckModel->removeRow(idx.row(), idx.parent()); deckModel->removeRow(idx.row(), idx.parent());
else else