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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Tue May 11 20:35:21 UTC 2021


 sw/source/uibase/uiview/view.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 2009af1c0fb4fead653dd7688347c15d74eaa1b0
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue May 11 20:58:50 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue May 11 22:34:26 2021 +0200

    Revert "tdf#141015: Show Mail Merge toolbar when DBData has data source"
    
    This reverts commit 346153f08c907739ca310934ad45814379971027.
    It seems to create more problems than expected, and there's no
    way to remove DB association other than editing document XML.
    
    Change-Id: I93171f17c01e231abbcfa9a816fdadce83c983ec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115283
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index c874e021375a..58012edabf60 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -453,9 +453,7 @@ void SwView::SelectShell()
         }
 
         // Show Mail Merge toolbar initially for documents with Database fields
-        if (!m_bInitOnceCompleted
-            && (GetWrtShell().IsAnyDatabaseFieldInDoc()
-                || !GetWrtShell().GetDBData().sDataSource.isEmpty()))
+        if (!m_bInitOnceCompleted && GetWrtShell().IsAnyDatabaseFieldInDoc())
             ShowUIElement("private:resource/toolbar/mailmerge");
 
         // Activate the toolbar to the new selection which also was active last time.


More information about the Libreoffice-commits mailing list