summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-08-01 20:07:50 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-08-15 10:40:08 +0200
commitdedf098e742550622cec6fdc639550371d9e58cf (patch)
treea422b79a66469787a882137b97095156e915db01 /vcl/unx
parent64121a303b5ceb3dd149215529ef8346b6d00dcd (diff)
GTK3 Disabled menu items are not hidden in DontHideDisabledEntry = false mode
Change-Id: Iece7d9de56477702fadbf1cadc2e0f5d9224c96e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155197 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtksalmenu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx
index c3b55d3036ea..a510473650d6 100644
--- a/vcl/unx/gtk3/gtksalmenu.cxx
+++ b/vcl/unx/gtk3/gtksalmenu.cxx
@@ -393,7 +393,7 @@ void GtkSalMenu::Update()
bool bAlwaysShowDisabledEntries;
if (pMenu->mbMenuBar)
- bAlwaysShowDisabledEntries = true;
+ bAlwaysShowDisabledEntries = !bool(mpVCLMenu->GetMenuFlags() & MenuFlags::HideDisabledEntries);
else
bAlwaysShowDisabledEntries = bool(mpVCLMenu->GetMenuFlags() & MenuFlags::AlwaysShowDisabledEntries);