mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
EditTableDialog: Don't change the cursor when renaming the table
Renaming a table doesn't take a lot of time hence no need to change the cursor.
This commit is contained in:
@@ -131,14 +131,10 @@ void EditTableDialog::accept()
|
||||
// Rename table if necessary
|
||||
if(ui->editTableName->text() != curTable)
|
||||
{
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor ); // this might take time
|
||||
if(!pdb->renameTable(curTable, ui->editTableName->text()))
|
||||
{
|
||||
QApplication::restoreOverrideCursor();
|
||||
QMessageBox::warning(this, QApplication::applicationName(), pdb->lastErrorMessage);
|
||||
return;
|
||||
} else {
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user