tdf115103: find data source if sDataSource/sCommand are empty
commit6feeb77552c38e3d9819611e9678470a44c00c84
authorAron Budea <aron.budea@collabora.com>
Mon, 22 Jan 2018 02:00:28 +0000 (22 03:00 +0100)
committerAron Budea <aron.budea@collabora.com>
Thu, 25 Jan 2018 13:42:27 +0000 (25 14:42 +0100)
tree6b89810bf9c8336c838de5604862815381927ad0
parent404a2ff6222228877087233bbe1f2a1544a46d8a
tdf115103: find data source if sDataSource/sCommand are empty

In several functions data source was only found if sDataSource and
sCommand corresponded to what was set in fields.
In imported DOC(X) files these aren't set.

Now use the data source even if field's sDataSource/sCommand are
empty (similarly to SwDBManager::IsDataSourceOpen(...)).

Change-Id: I9563cb56e700e7fd033100cb200f41f074669020
Reviewed-on: https://gerrit.libreoffice.org/48285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
sw/source/uibase/dbui/dbmgr.cxx