feat: also move selection when moving dbc files up or down
This commit is contained in:
@@ -266,6 +266,7 @@ void DBCLoadSaveWindow::moveUp()
|
|||||||
if (idx < 1) return;
|
if (idx < 1) return;
|
||||||
dbcHandler->swapFiles(idx - 1, idx);
|
dbcHandler->swapFiles(idx - 1, idx);
|
||||||
swapTableRows(true);
|
swapTableRows(true);
|
||||||
|
ui->tableFiles->setCurrentCell(idx - 1, 0);
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,6 +277,7 @@ void DBCLoadSaveWindow::moveDown()
|
|||||||
if (idx > (dbcHandler->getFileCount() - 2)) return;
|
if (idx > (dbcHandler->getFileCount() - 2)) return;
|
||||||
dbcHandler->swapFiles(idx, idx + 1);
|
dbcHandler->swapFiles(idx, idx + 1);
|
||||||
swapTableRows(false);
|
swapTableRows(false);
|
||||||
|
ui->tableFiles->setCurrentCell(idx + 1, 0);
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user