Fix identation

This commit is contained in:
Martin Kleusberg
2012-12-30 16:29:35 +01:00
parent b2c8f57dfe
commit cfa7cd5eaf

View File

@@ -1521,17 +1521,17 @@ void MainWindow::deleteTablePopup()
// 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 table '%1'?\nAll data in the table will be lost.").arg(table),
QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape) == QMessageBox::Yes)
QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape) == QMessageBox::Yes)
{
// Delete the table
QString statement = QString("DROP TABLE %1;").arg(table);
if (!db.executeSQL( statement)) {
QString error = QString("Error: could not delete the table. Message from database engine:\n%1").arg(db.lastErrorMessage);
QMessageBox::warning( this, QApplication::applicationName(), error );
} else {
populateStructure();
resetBrowser();
}
// Delete the table
QString statement = QString("DROP TABLE %1;").arg(table);
if (!db.executeSQL( statement)) {
QString error = QString("Error: could not delete the table. Message from database engine:\n%1").arg(db.lastErrorMessage);
QMessageBox::warning( this, QApplication::applicationName(), error );
} else {
populateStructure();
resetBrowser();
}
}
}