Update buttons in removal message boxes

This commit is contained in:
Vladislav Tronko
2016-06-08 00:41:27 +03:00
parent 65f3c334ed
commit f39dc20f63
2 changed files with 2 additions and 2 deletions

View File

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