diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-05-15 10:58:30 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-05-15 12:33:09 +0200 |
commit | 12679b370f7ec0a73c4c10c7de5c255a7d2cfca0 (patch) | |
tree | 07d8de4e33329273bae075440a0419c35203f4b2 | |
parent | fb978737245bcde30ad4861c40c476b6da53eea3 (diff) |
tdf#83722: Restrict the condition only to File > New
referrer =~ private:user
Change-Id: Ic67b0285ab7f49546499e4a9d90d9061c9d1274c
Reviewed-on: https://gerrit.libreoffice.org/72346
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index f37f267733b3..0fb25aa126b8 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -1519,8 +1519,8 @@ css::uno::Reference< css::frame::XFrame > LoadEnv::impl_searchRecycleTarget() OUString sReferrer = lOldDocDescriptor.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_REFERRER(), OUString()); // tdf#83722: valid but unmodified document, either from template - // or opened by the user (File > New) - if (bFromTemplate || !sReferrer.isEmpty()) + // or opened by the user (via File > New, referrer is set to private:user) + if (bFromTemplate || (sReferrer == "private:user")) return css::uno::Reference< css::frame::XFrame >(); bReactivateOldControllerOnError = xOldDoc->suspend(true); |