diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-13 02:33:20 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-13 06:31:40 +0200 |
commit | 9758b9b6e52e8e8a8a5cc24b51d62a853a3def82 (patch) | |
tree | 19e3b02d56e5224b10e1e533d1c28e086d89b145 /vcl/qt5/Qt5Menu.cxx | |
parent | 47d0dac4f4b165a7e18a09aa45a6984a6c1fce0e (diff) |
Qt5 correctly hide menu bar in tabbed mode
Change-Id: I179780c2df5637b8a28c3a77b829319b1a64845b
Reviewed-on: https://gerrit.libreoffice.org/73924
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/qt5/Qt5Menu.cxx')
-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 435cc53363d4..9ca4d54d45a3 100644 --- a/vcl/qt5/Qt5Menu.cxx +++ b/vcl/qt5/Qt5Menu.cxx @@ -545,8 +545,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 |