mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
set override cursor if selecting a line
This commit is contained in:
@@ -411,6 +411,7 @@ void MainWindow::selectTableLine(int lineToSelect)
|
||||
if(lineToSelect >= m_browseTableModel->totalRowCount())
|
||||
return;
|
||||
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
// Make sure this line has already been fetched
|
||||
while(lineToSelect >= m_browseTableModel->rowCount() && m_browseTableModel->canFetchMore())
|
||||
m_browseTableModel->fetchMore();
|
||||
@@ -419,6 +420,7 @@ void MainWindow::selectTableLine(int lineToSelect)
|
||||
ui->dataTable->clearSelection();
|
||||
ui->dataTable->selectRow(lineToSelect);
|
||||
ui->dataTable->scrollTo(ui->dataTable->currentIndex());
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
void MainWindow::navigatePrevious()
|
||||
|
||||
Reference in New Issue
Block a user