diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-11 20:58:50 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-05-12 06:16:55 +0200 |
commit | 8ca83e3801ee8e6359159ab4c222eedbf76e63dc (patch) | |
tree | 1533ddeb19b46c3a2abf038d1ec47fc470301914 | |
parent | 8bdbc928cb2d79e161aaa6a5ac1cd816ab6c591b (diff) |
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@collabora.com>
(cherry picked from commit 2009af1c0fb4fead653dd7688347c15d74eaa1b0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115286
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 3e10ab192e5a..ff6f2bc82349 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -439,9 +439,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. |