diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-24 14:30:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-24 18:10:15 +0200 |
commit | 585cefd18de027de1c303f46c5401fe687b58fac (patch) | |
tree | ec863e8752032f77dc19e3fc963ef42c8d90a21b /dbaccess | |
parent | 8197c3af338a20a3b99de001adc02b4329f074a7 (diff) |
allow cut and paste even if the frame isn't 'active'
where active means the frame has focus
Change-Id: I9f2e7f7bdd8824894e5c99c6b145ec84c1491485
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99379
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index da86fb9c1393..57af83b361f3 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -176,13 +176,13 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const break; case ID_BROWSER_CUT: - aReturn.bEnabled = isEditable() && m_aCurrentFrame.isActive() && getView() && static_cast<OTableDesignView*>(getView())->isCutAllowed(); + aReturn.bEnabled = isEditable() && getView() && static_cast<OTableDesignView*>(getView())->isCutAllowed(); break; case ID_BROWSER_COPY: - aReturn.bEnabled = m_aCurrentFrame.isActive() && getView() && static_cast<OTableDesignView*>(getView())->isCopyAllowed(); + aReturn.bEnabled = getView() && static_cast<OTableDesignView*>(getView())->isCopyAllowed(); break; case ID_BROWSER_PASTE: - aReturn.bEnabled = isEditable() && m_aCurrentFrame.isActive() && getView() && static_cast<OTableDesignView*>(getView())->isPasteAllowed(); + aReturn.bEnabled = isEditable() && getView() && static_cast<OTableDesignView*>(getView())->isPasteAllowed(); break; case SID_INDEXDESIGN: aReturn.bEnabled = |