summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/gtk/gtksalmenu.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 8671f4c387f8..0573e6c92905 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -762,7 +762,8 @@ void GtkSalMenu::SetFrame(const SalFrame* pFrame)
}
// Generate the main menu structure.
- UpdateFull();
+ if ( PrepUpdate() )
+ UpdateFull();
g_lo_menu_insert_section( pMenuModel, 0, nullptr, mpMenuModel );