diff options
-rw-r--r-- | vcl/qt5/Qt5Menu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx index 0eeafb89f85d..916e92f794c5 100644 --- a/vcl/qt5/Qt5Menu.cxx +++ b/vcl/qt5/Qt5Menu.cxx @@ -536,8 +536,8 @@ Qt5Menu* Qt5Menu::GetTopLevel() void Qt5Menu::ShowMenuBar(bool bVisible) { - if (mpQMenuBar && (bVisible != mpQMenuBar->isVisible())) - bVisible ? mpQMenuBar->show() : mpQMenuBar->hide(); + if (mpQMenuBar) + mpQMenuBar->setVisible(bVisible); } const Qt5Frame* Qt5Menu::GetFrame() const |