From 5e8b0139fcafcc371d144ebf95e5f4c9bb5576eb Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Thu, 12 Dec 2024 14:32:44 +0100 Subject: [PATCH] fix error where table comment was not updated on second open of "Table Properties" window --- python/plugins/db_manager/dlg_table_properties.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/plugins/db_manager/dlg_table_properties.py b/python/plugins/db_manager/dlg_table_properties.py index 7d836f86cad3..d198d903b608 100644 --- a/python/plugins/db_manager/dlg_table_properties.py +++ b/python/plugins/db_manager/dlg_table_properties.py @@ -386,6 +386,7 @@ def createComment(self): tab = self.table.name com = self.viewComment.toPlainText() self.db.connector.commentTable(schem, tab, com) + self.table.comment = com except DbError as e: DlgDbError.showError(e, self) return @@ -407,6 +408,7 @@ def deleteComment(self): self.refresh() # Refresh line edit, put a void comment self.viewComment.setPlainText("") + self.table.comment = "" # Display successful message QMessageBox.information( self, self.tr("Delete comment"), self.tr("Comment deleted")