diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-12 10:05:34 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-15 12:37:55 +0100 |
commit | 7cffe43f0dc063b90e60f1698c30444297fb6f6a (patch) | |
tree | 2220fd468b5a66c15cc28ea792e1c8287822930c /dbaccess | |
parent | 80ada110c56398e984d3f2d1f0ae1f30e8a73690 (diff) |
Resolves: tdf#145582 modify called too often
a problem since:
commit 5b98dd53c7dc101d3a5ff693d3f0520ec1abd3d1
Date: Tue Aug 3 12:28:23 2021 +0100
tdf#143657 'execute' button doesn't get enabled when contents changed
which was a fix for the problem since:
commit 73c9ef661d9ef6237d3fd3c259fd040a545b44cf
Date: Tue Jul 6 18:51:38 2021 +0200
tdf#132740 don't broadcast if modified status has not changed
Change-Id: Ibae42251ce04229283283407bc2ab986272e945d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124978
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/sqledit.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx index 92af2e8bd03b..5c801effdbcb 100644 --- a/dbaccess/source/ui/control/sqledit.cxx +++ b/dbaccess/source/ui/control/sqledit.cxx @@ -194,6 +194,7 @@ void SQLEditView::UpdateData() m_bInUpdate = true; EditEngine& rEditEngine = *GetEditEngine(); + bool bModified = rEditEngine.IsModified(); bool bUndoEnabled = rEditEngine.IsUndoEnabled(); rEditEngine.EnableUndo(false); @@ -224,7 +225,8 @@ void SQLEditView::UpdateData() rEditEngine.EnableUndo(bUndoEnabled); - m_aModifyLink.Call(nullptr); + if (bModified) + m_aModifyLink.Call(nullptr); Invalidate(); } |