Skip to content

Commit

Permalink
fix error where table comment was not updated on second open of "Tabl…
Browse files Browse the repository at this point in the history
…e Properties" window
  • Loading branch information
JanCaha authored and nyalldawson committed Dec 13, 2024
1 parent eef5cce commit 5e8b013
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/db_manager/dlg_table_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 5e8b013

Please sign in to comment.