From abe622ebf49f66e4a125e31af887e5f97b990b34 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Fri, 15 Aug 2014 22:54:36 +0200 Subject: [PATCH] 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. --- src/EditTableDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index c8163db5..9379a683 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -138,6 +138,7 @@ void EditTableDialog::reject() { // Then rollback to our savepoint pdb->revert(m_sRestorePointName); + pdb->updateSchema(); QDialog::reject(); }