diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-13 02:33:20 +0000 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-06-13 18:46:03 +0200 |
commit | 7f89fe721d2b74ad88b5a124cda20ae419746dec (patch) | |
tree | 82a4998ca89f1bbf5999b7bc06eaa563ce71f92d | |
parent | 10850d0d8406a7c0b1524788bf9f6530ea4012e8 (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>
(cherry picked from commit 9758b9b6e52e8e8a8a5cc24b51d62a853a3def82)
Reviewed-on: https://gerrit.libreoffice.org/73926
(cherry picked from commit 221f27433900490e2b00bd4ed6957ab36ecadb33)
Reviewed-on: https://gerrit.libreoffice.org/73927
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-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 |