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/+/149304
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index ca859c4..992195e 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)
{