From c8ef76241d69fb7113a9f618c420955bbf0e4ab6 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Tue, 25 Dec 2018 18:51:36 +0100 Subject: [PATCH] Do not recreate table schema if table did not change When the table schema was not modified in the Edit Table dialog, do not do anything when clicking the OK button. See issue #1686. --- src/sqlitedb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sqlitedb.cpp b/src/sqlitedb.cpp index 45966ed2..4ba5fe18 100644 --- a/src/sqlitedb.cpp +++ b/src/sqlitedb.cpp @@ -1425,6 +1425,10 @@ bool DBBrowserDB::alterTable(const sqlb::ObjectIdentifier& tablename, const sqlb } } + // Check if any changes were made to the table schema + if(old_table == new_table) + return true; + // Create savepoint to be able to go back to it in case of any error QString savepointName = generateSavepointName("renamecolumn"); if(!setSavepoint(savepointName))