diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-03-10 01:12:08 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-03-16 21:51:30 +0200 |
commit | 0e31d0aa855f7f5ab4875bae916d277fc3c96998 (patch) | |
tree | bfdf0b84f87c28b59b9406032a9c6391c617d38f /vcl/unx/gtk/gtksalmenu.cxx | |
parent | b4156ece74b2d3802ea64e9df85b8e1ed43e9631 (diff) |
gtk3: Keep menubar hidden after customization
... if it was hidden before. Otherwise it becomes
out of sync with MenuBar::mbDisplayable.
Change-Id: I4957f5cef916abfa54add2901b330463364d3dba
Diffstat (limited to 'vcl/unx/gtk/gtksalmenu.cxx')
-rw-r--r-- | vcl/unx/gtk/gtksalmenu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx index e4d2ebab2c31..ec253945c89e 100644 --- a/vcl/unx/gtk/gtksalmenu.cxx +++ b/vcl/unx/gtk/gtksalmenu.cxx @@ -847,7 +847,7 @@ void GtkSalMenu::SetFrame(const SalFrame* pFrame) g_lo_menu_insert_section( pMenuModel, 0, nullptr, mpMenuModel ); #if GTK_CHECK_VERSION(3,0,0) - if (!bUnityMode) + if (!bUnityMode && static_cast<MenuBar*>(mpVCLMenu.get())->IsDisplayable()) { DestroyMenuBarWidget(); CreateMenuBarWidget(); |