dbaccess/source/core/dataaccess/datasource.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2c84c14bd0baa09e134b6ad211492f730eaf6549
Author:     heiko tietze <tietze.he...@gmail.com>
AuthorDate: Tue Apr 2 09:27:29 2019 +0200
Commit:     Heiko Tietze <tietze.he...@gmail.com>
CommitDate: Mon Apr 15 15:18:01 2019 +0200

    Suppress migration dialog during unit test run
    
    Change-Id: Ib148673235367081282c346d9b6d4ba9f795b877
    Reviewed-on: https://gerrit.libreoffice.org/70120
    Tested-by: Jenkins
    Reviewed-by: Tamás Bunth <btom...@gmail.com>
    Reviewed-by: Heiko Tietze <tietze.he...@gmail.com>

diff --git a/dbaccess/source/core/dataaccess/datasource.cxx 
b/dbaccess/source/core/dataaccess/datasource.cxx
index f6a3decb4db1..0935fcf77bb5 100644
--- a/dbaccess/source/core/dataaccess/datasource.cxx
+++ b/dbaccess/source/core/dataaccess/datasource.cxx
@@ -616,7 +616,8 @@ Reference< XConnection > 
ODatabaseSource::buildLowLevelConnection(const OUString
             Reference<XPropertySet> const xPropSet(xRootStorage, 
UNO_QUERY_THROW);
             sal_Int32 nOpenMode(0);
             if ((xPropSet->getPropertyValue("OpenMode") >>= nOpenMode)
-                && (nOpenMode & css::embed::ElementModes::WRITE))
+                && (nOpenMode & css::embed::ElementModes::WRITE)
+                && (!Application::IsHeadlessModeEnabled()))
             {
                 MigrationWarnDialog 
aWarnDlg(GetFrameWeld(m_pImpl->getModel_noCreate()));
                 bNeedMigration = aWarnDlg.run() == RET_OK;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to