diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-05-15 15:29:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-15 15:29:36 +0200 |
commit | 1d7d99e9aa74cb5ee11649b76e35c5a03263c889 (patch) | |
tree | 1803c1bac9123bc8ef6ec2b0d54036d7db576cf0 /framework | |
parent | a0cd92dbafeec1d2f1400e7841c48cc8c02295ad (diff) |
Mode (r/o vs r/w) changes can affect title, too
Change-Id: I69ecb9fa157c706c90132e7801def2253529158d
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index 574a21e06b60..0ab3582bd311 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -198,6 +198,7 @@ void SAL_CALL TitleHelper::notifyEvent(const css::document::EventObject& aEvent) throw (css::uno::RuntimeException) { if ( ! aEvent.EventName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("OnSaveAsDone")) + && ! aEvent.EventName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("OnModeChanged")) && ! aEvent.EventName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("OnTitleChanged"))) return; @@ -209,10 +210,12 @@ void SAL_CALL TitleHelper::notifyEvent(const css::document::EventObject& aEvent) aLock.clear (); // <- SYNCHRONIZED - if ( - aEvent.Source != xOwner || - (aEvent.EventName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("OnTitleChanged")) && !xOwner.is()) - ) + if (aEvent.Source != xOwner + || ((aEvent.EventName.equalsIgnoreAsciiCaseAsciiL( + RTL_CONSTASCII_STRINGPARAM("OnModeChanged")) + || aEvent.EventName.equalsIgnoreAsciiCaseAsciiL( + RTL_CONSTASCII_STRINGPARAM("OnTitleChanged"))) + && !xOwner.is())) { return; } |