svx/source/form/datanavi.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fc9126c3cb84d6b53c1d6daa10814ae25f863056
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 22 15:25:52 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 22 16:38:05 2023 +0000

    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 <caol...@redhat.com>

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)
             {

Reply via email to