mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fix identaton (replace tabs with spaces)
This commit replaces tabs which were introduced in 17369b6 with spaces
This commit is contained in:
@@ -585,11 +585,11 @@ void MainWindow::deleteRecord()
|
||||
|
||||
int old_row = ui->dataTable->currentIndex().row();
|
||||
while(ui->dataTable->selectionModel()->hasSelection())
|
||||
{
|
||||
int first_selected_row = ui->dataTable->selectionModel()->selectedIndexes().first().row();
|
||||
int last_selected_row = ui->dataTable->selectionModel()->selectedIndexes().last().row();
|
||||
int selected_rows_count = last_selected_row - first_selected_row + 1;
|
||||
if(!m_browseTableModel->removeRows(first_selected_row, selected_rows_count))
|
||||
{
|
||||
int first_selected_row = ui->dataTable->selectionModel()->selectedIndexes().first().row();
|
||||
int last_selected_row = ui->dataTable->selectionModel()->selectedIndexes().last().row();
|
||||
int selected_rows_count = last_selected_row - first_selected_row + 1;
|
||||
if(!m_browseTableModel->removeRows(first_selected_row, selected_rows_count))
|
||||
{
|
||||
QMessageBox::warning(this, QApplication::applicationName(), tr("Error deleting record:\n%1").arg(db.lastErrorMessage));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user