From 8c86a01fafcc01d2b7b2ade84b222fcb6582cad4 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sat, 25 May 2013 17:22:20 +0200 Subject: [PATCH] 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. --- src/EditTableDialog.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index bd84cf02..ec67f2cf 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -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(); } } }