diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2016-09-30 22:57:35 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2016-10-01 06:35:30 +0000 |
commit | a2765c02cd44a7f4ab7d30716d8fe7c1811aa3a6 (patch) | |
tree | d2f1257ba4c4e5437cfa5599662ddedc9bead12e /vcl | |
parent | 74b2cc607448d24146bd3508abb832d6ab42cb56 (diff) |
Notebookbar: fixed context handling
After last changes context switching was not working.
Removed unnecessary Resize call to avoid flickering.
Change-Id: I7931f4d442737c704c41bb7944c6d95e45b964f7
Reviewed-on: https://gerrit.libreoffice.org/29411
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/notebookbar.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx index 9a931873c45b..2ff1c3ec69c1 100644 --- a/vcl/source/control/notebookbar.cxx +++ b/vcl/source/control/notebookbar.cxx @@ -99,17 +99,6 @@ void NotebookBar::SetIconClickHdl(Link<NotebookBar*, void> aHdl) m_pContextContainer->SetIconClickHdl(aHdl); } -void NotebookBar::StateChanged(StateChangedType nType) -{ - if (nType == StateChangedType::Visible) - { - // visibility changed, update the container - GetParent()->Resize(); - } - - Control::StateChanged(nType); -} - void SAL_CALL NotebookBarContextChangeEventListener::notifyContextChangeEvent(const css::ui::ContextChangeEventObject& rEvent) throw (css::uno::RuntimeException, std::exception) { |