summaryrefslogtreecommitdiff
path: root/svx/source/form/datanavi.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-22 15:25:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-03-22 16:38:05 +0000
commitfc9126c3cb84d6b53c1d6daa10814ae25f863056 (patch)
tree4307fa19dda3417485a6f71e2269f93b91150eab /svx/source/form/datanavi.cxx
parent0ad9327f3f8d94da1e932fcba23437fb4c126704 (diff)
tdf#154307 remove instead of hide these menu entries
because on kf5 they are getting shown, which suggests a wider more generic bug on that variant, but use remove for this specific case because that's ok for this usage and works around the problem for now. Change-Id: Ib2bc316cc33894253a0b6335ae8643d0c8d78794 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149325 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/form/datanavi.cxx')
-rw-r--r--svx/source/form/datanavi.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index ca859c4cbd15..992195e05778 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -150,11 +150,11 @@ namespace svxform
std::unique_ptr<weld::Menu> xMenu(xBuilder->weld_menu("menu"));
if (DGTInstance == m_eGroup)
- xMenu->set_visible("additem", false);
+ xMenu->remove("additem");
else
{
- xMenu->set_visible("addelement", false);
- xMenu->set_visible("addattribute", false);
+ xMenu->remove("addelement");
+ xMenu->remove("addattribute");
if (DGTSubmission == m_eGroup)
{