summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-30 16:08:25 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-10-01 18:58:44 +0200
commitce64c678e7dcc188f38304f0813d1c7895e6832f (patch)
tree3d530b4bf4b69155e281b8cc3f2f631944024fa3
parentResolves: tdf#144783 shift+RETURN not searching backwards (diff)
downloadcore-ce64c678e7dcc188f38304f0813d1c7895e6832f.tar.gz
core-ce64c678e7dcc188f38304f0813d1c7895e6832f.zip
Resolves: tdf#140992 Paste/Cut should mark Edit as modified
Change-Id: Id56b5bf2e922394da7e730f4bab652808253c54e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122857 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins (cherry picked from commit 236419fb117ce8cd96d181f0b1050d7bb6020a06) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122871 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--vcl/source/app/salvtables.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index a66e95158aa4..1fe6cb38320b 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -3336,11 +3336,19 @@ Edit& SalInstanceEntry::getEntry() { return *m_xEntry; }
void SalInstanceEntry::fire_signal_changed() { signal_changed(); }
-void SalInstanceEntry::cut_clipboard() { m_xEntry->Cut(); }
+void SalInstanceEntry::cut_clipboard()
+{
+ m_xEntry->Cut();
+ m_xEntry->Modify();
+}
void SalInstanceEntry::copy_clipboard() { m_xEntry->Copy(); }
-void SalInstanceEntry::paste_clipboard() { m_xEntry->Paste(); }
+void SalInstanceEntry::paste_clipboard()
+{
+ m_xEntry->Paste();
+ m_xEntry->Modify();
+}
namespace
{