EditTableDialog: Reload the current DB schema when cancelling

All the editing in the EditTableDialog, that is the DBBrowserDB class to
be specific, messes up the current representation of the DB schema. This
is fine when the changes are actually committed by clicking the OK
button but causes confusion when the dialog is cancelled. None of the
changes are actually written to the database but the UI looks like they
are.

This closes issue #74.
This commit is contained in:
Martin Kleusberg
2014-08-15 22:54:36 +02:00
parent b754284073
commit abe622ebf4

View File

@@ -138,6 +138,7 @@ void EditTableDialog::reject()
{
// Then rollback to our savepoint
pdb->revert(m_sRestorePointName);
pdb->updateSchema();
QDialog::reject();
}