mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
don't reset selection after each action
This commit is contained in:
parent
fd68cfdeeb
commit
d4aff201bf
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue