feat: also move selection when moving dbc files up or down

This commit is contained in:
Refuhr
2026-06-08 15:13:13 +02:00
committed by Leopixelo
parent 2acbe443ec
commit be85c1e413
+2
View File
@@ -266,6 +266,7 @@ void DBCLoadSaveWindow::moveUp()
if (idx < 1) return;
dbcHandler->swapFiles(idx - 1, idx);
swapTableRows(true);
ui->tableFiles->setCurrentCell(idx - 1, 0);
updateSettings();
}
@@ -276,6 +277,7 @@ void DBCLoadSaveWindow::moveDown()
if (idx > (dbcHandler->getFileCount() - 2)) return;
dbcHandler->swapFiles(idx, idx + 1);
swapTableRows(false);
ui->tableFiles->setCurrentCell(idx + 1, 0);
updateSettings();
}