mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -138,6 +138,7 @@ void EditTableDialog::reject()
|
||||
{
|
||||
// Then rollback to our savepoint
|
||||
pdb->revert(m_sRestorePointName);
|
||||
pdb->updateSchema();
|
||||
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user