[Libreoffice-commits] core.git: framework/source

Katarina Behrens (via logerrit) logerrit at kemper.freedesktop.org
Wed May 15 10:34:21 UTC 2019


 framework/source/loadenv/loadenv.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 12679b370f7ec0a73c4c10c7de5c255a7d2cfca0
Author:     Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Wed May 15 10:58:30 2019 +0200
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Wed May 15 12:33:09 2019 +0200

    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 at cib.de>

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);


More information about the Libreoffice-commits mailing list