From f39dc20f63b675df0bf33715a5cd8d6af401f679 Mon Sep 17 00:00:00 2001 From: Vladislav Tronko Date: Wed, 8 Jun 2016 00:41:27 +0300 Subject: [PATCH] Update buttons in removal message boxes --- src/EditTableDialog.cpp | 2 +- src/MainWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index 3eb3e0df..d0acc726 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -498,7 +498,7 @@ void EditTableDialog::removeField() // Ask user whether he really wants to delete that column QString msg = tr("Are you sure you want to delete the field '%1'?\nAll data currently stored in this field will be lost.").arg(ui->treeWidget->currentItem()->text(0)); - if(QMessageBox::warning(this, QApplication::applicationName(), msg, QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape) == QMessageBox::Yes) + if(QMessageBox::warning(this, QApplication::applicationName(), msg, QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::Yes) { if(!pdb->renameColumn(curTable, ui->treeWidget->currentItem()->text(0), sqlb::FieldPtr())) { diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 324c34f8..88777ff0 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -754,7 +754,7 @@ void MainWindow::deleteObject() // Ask user if he really wants to delete that table if(QMessageBox::warning(this, QApplication::applicationName(), tr("Are you sure you want to delete the %1 '%2'?\nAll data associated with the %1 will be lost.").arg(type).arg(table), - QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape) == QMessageBox::Yes) + QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::Yes) { // Delete the table QString statement = QString("DROP %1 %2;").arg(type.toUpper()).arg(sqlb::escapeIdentifier(table));