From 585cefd18de027de1c303f46c5401fe687b58fac Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 24 Jul 2020 14:30:38 +0100 Subject: allow cut and paste even if the frame isn't 'active' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit where active means the frame has focus Change-Id: I9f2e7f7bdd8824894e5c99c6b145ec84c1491485 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99379 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- dbaccess/source/ui/tabledesign/TableController.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dbaccess') 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(getView())->isCutAllowed(); + aReturn.bEnabled = isEditable() && getView() && static_cast(getView())->isCutAllowed(); break; case ID_BROWSER_COPY: - aReturn.bEnabled = m_aCurrentFrame.isActive() && getView() && static_cast(getView())->isCopyAllowed(); + aReturn.bEnabled = getView() && static_cast(getView())->isCopyAllowed(); break; case ID_BROWSER_PASTE: - aReturn.bEnabled = isEditable() && m_aCurrentFrame.isActive() && getView() && static_cast(getView())->isPasteAllowed(); + aReturn.bEnabled = isEditable() && getView() && static_cast(getView())->isPasteAllowed(); break; case SID_INDEXDESIGN: aReturn.bEnabled = -- cgit