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:
Martin Kleusberg
2013-05-25 17:22:20 +02:00
parent f3ae25572d
commit 8c86a01faf

View File

@@ -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();
}
}
}