Kaydet (Commit) 2c84c14b authored tarafından heiko tietze's avatar heiko tietze Kaydeden (comit) Heiko Tietze

Suppress migration dialog during unit test run

Change-Id: Ib148673235367081282c346d9b6d4ba9f795b877
Reviewed-on: https://gerrit.libreoffice.org/70120
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Bunth <btomi96@gmail.com>
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst ed4cb70b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment