diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-04-01 00:20:25 +0300 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-19 11:45:27 +0000 |
commit | ec5e521c6ec77aff5acddce8f53c848948fcef48 (patch) | |
tree | f29bd4c0f755cf64a7fb73ac070c6e8ee5da21de | |
parent | 978b6405d771cc2e69e6bd2bd7bdad435778ba6a (diff) |
tdf#98849 SaveToolbarController: Correct initial modified state
Regression of 69882b0ef861099fd6bfa802d6f7ba5d1391c269
Change-Id: I3698efff2f1e62e513d779400eff7f1c4a4145e4
(cherry picked from commit 30b10b1a589945b570445518163feb6eac8e95e1)
Reviewed-on: https://gerrit.libreoffice.org/23715
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | framework/source/uielement/popuptoolbarcontroller.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx index ace688478974..35a543268924 100644 --- a/framework/source/uielement/popuptoolbarcontroller.cxx +++ b/framework/source/uielement/popuptoolbarcontroller.cxx @@ -379,7 +379,10 @@ void SaveToolbarController::initialize( const css::uno::Sequence< css::uno::Any m_xModifiable.set( xController, css::uno::UNO_QUERY ); if ( m_xModifiable.is() ) + { m_xModifiable->addModifyListener( this ); + m_bModified = m_xModifiable->isModified(); + } } sal_Bool SaveToolbarController::opensSubToolbar() |