extensions/source/abpilot/abspilot.cxx | 2 +- extensions/source/abpilot/datasourcehandling.cxx | 5 +++-- extensions/source/abpilot/datasourcehandling.hxx | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-)
New commits: commit f16214fc22aa6665bc9667033496f8e4bed80e05 Author: Gabor Kelemen <kelemen.gab...@nisz.hu> AuthorDate: Thu Apr 2 01:28:21 2020 +0200 Commit: László Németh <nem...@numbertext.org> CommitDate: Thu Apr 2 18:53:52 2020 +0200 tdf#117101 Make Spreadsheet the default new data source type instead of DBase. It's more likely that people are having those as data source for Mail Merge Also change method name to mirror the "Other" option that was selected in the firs step of the wizard Change-Id: I12b7fa98ada3af4fd39614a77b47cb587743b614 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91541 Tested-by: Jenkins Tested-by: László Németh <nem...@numbertext.org> Reviewed-by: László Németh <nem...@numbertext.org> diff --git a/extensions/source/abpilot/abspilot.cxx b/extensions/source/abpilot/abspilot.cxx index be1f98daf0eb..11376effb3a9 100644 --- a/extensions/source/abpilot/abspilot.cxx +++ b/extensions/source/abpilot/abspilot.cxx @@ -343,7 +343,7 @@ namespace abp break; case AST_OTHER: - m_aNewDataSource = aContext.createNewDBase( m_aSettings.sDataSourceName ); + m_aNewDataSource = aContext.createNewOther( m_aSettings.sDataSourceName ); break; case AST_INVALID: diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index 00ab85a2486a..46b71839d8e2 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -280,9 +280,10 @@ namespace abp } - ODataSource ODataSourceContext::createNewDBase( const OUString& _rName) + // tdf117101: Spreadsheet by default + ODataSource ODataSourceContext::createNewOther( const OUString& _rName) { - return lcl_implCreateAndSetURL( m_pImpl->xORB, _rName, "sdbc:dbase:" ); + return lcl_implCreateAndSetURL( m_pImpl->xORB, _rName, "sdbc:calc:" ); } struct ODataSourceImpl diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx index 00da09f7941d..98e62e90ef3b 100644 --- a/extensions/source/abpilot/datasourcehandling.hxx +++ b/extensions/source/abpilot/datasourcehandling.hxx @@ -80,8 +80,8 @@ namespace abp /// creates a new macOS address book data source ODataSource createNewMacab( const OUString& _rName ); - /// creates a new dBase data source - ODataSource createNewDBase( const OUString& _rName ); + /// creates a new Other data source; tdf117101: Spreadsheet by default + ODataSource createNewOther( const OUString& _rName ); }; struct ODataSourceImpl; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits