summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc/sqledit.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/inc/sqledit.hxx')
-rw-r--r--dbaccess/source/ui/inc/sqledit.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbaccess/source/ui/inc/sqledit.hxx b/dbaccess/source/ui/inc/sqledit.hxx
index f537cb856088..c941bdfa4c6e 100644
--- a/dbaccess/source/ui/inc/sqledit.hxx
+++ b/dbaccess/source/ui/inc/sqledit.hxx
@@ -74,7 +74,10 @@ namespace dbaui
using MultiLineEditSyntaxHighlight::SetText;
// own functionality
- bool IsInAccelAct();
+ // Cut, Copy, Paste by Accel. runs the action in the Edit but also the
+ // corresponding slot in the View. Therefore, the action occurs twice.
+ // To prevent this, SlotExec in View can call this function.
+ bool IsInAccelAct() { return m_bAccelAction; }
void SetTextModifyHdl(const Link& lnk) { m_lnkTextModifyHdl = lnk; }
// please don't use SetModifyHdl, I need it for myself, this here is called from the handler set with that