summaryrefslogtreecommitdiff
path: root/framework/source/uielement/popuptoolbarcontroller.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-04-01 00:20:25 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-04-01 00:20:58 +0300
commit30b10b1a589945b570445518163feb6eac8e95e1 (patch)
tree1493ec83d542327dfaa48b6f62d871a023a60eae /framework/source/uielement/popuptoolbarcontroller.cxx
parent75092faa821b236eaed27b7d0e6f1f1a28d1a2e2 (diff)
tdf#98849 SaveToolbarController: Correct initial modified state
Regression of 69882b0ef861099fd6bfa802d6f7ba5d1391c269 Change-Id: I3698efff2f1e62e513d779400eff7f1c4a4145e4
Diffstat (limited to 'framework/source/uielement/popuptoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/popuptoolbarcontroller.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 50f7ec3c882d..b64ff51a26d4 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -395,7 +395,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()