[Libreoffice-commits] core.git: dbaccess/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 21 16:00:49 UTC 2020
dbaccess/source/ui/tabledesign/TableDesignControl.cxx | 11 -----------
1 file changed, 11 deletions(-)
New commits:
commit d360147a9943634d5ad4950aa99ad3f4a1666424
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Dec 21 10:31:10 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 21 17:00:06 2020 +0100
paste and delete are never enabled, so handlers never called
Change-Id: If45a55d8b84d691bdfcabc6b68ef2843765262f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108092
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx b/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
index 2c0241b132df..40568ac9fca3 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
@@ -114,23 +114,12 @@ void OTableRowView::Command(const CommandEvent& rEvt)
sal_Int32 nSelectRowCount = GetSelectRowCount();
aContextMenu->EnableItem(aContextMenu->GetItemId("cut"), nSelectRowCount != 0);
aContextMenu->EnableItem(aContextMenu->GetItemId("copy"), nSelectRowCount != 0);
- aContextMenu->EnableItem(aContextMenu->GetItemId("paste"), false);
- aContextMenu->EnableItem(aContextMenu->GetItemId("delete"), false);
aContextMenu->Execute(this, rEvt.GetMousePosPixel());
OString sIdent = aContextMenu->GetCurItemIdent();
if (sIdent == "cut")
cut();
else if (sIdent == "copy")
copy();
- else if (sIdent == "paste")
- {
- Paste( nRow );
- SetNoSelection();
- GoToRow( nRow );
- SeekRow( nRow );
- }
- else if (sIdent == "delete")
- DeleteRows();
else if (sIdent == "insert")
{
InsertNewRows( nRow );
More information about the Libreoffice-commits
mailing list