diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-22 09:26:33 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-22 09:43:44 +0300 |
commit | e15223582710e9e2e31fad2f557df6ee99501fd0 (patch) | |
tree | 84dfa0f72c9a8a813d0b09b5f4e3954e105cdbfe /sw/source/core/edit | |
parent | cf8946d10226272e8a0e6f1b1043b54d4b63db8d (diff) |
More hacking on --disable-database-connectivity
Work in progress, still lots of undefineds when attempting to link
TiledLibreOffice.
Change-Id: I80fa330768d9f9fa9ef65e3693f1d777c0713210
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/edfld.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx index 2d2b2c3b4f2f..a765fbb1445b 100644 --- a/sw/source/core/edit/edfld.cxx +++ b/sw/source/core/edit/edfld.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <unotools/charclass.hxx> #include <editsh.hxx> #include <fldbas.hxx> @@ -365,13 +367,21 @@ void SwEditShell::UpdateExpFlds(sal_Bool bCloseDB) StartAllAction(); GetDoc()->UpdateExpFlds(NULL, true); if (bCloseDB) + { +#if HAVE_FEATURE_DBCONNECTIVITY GetDoc()->GetNewDBMgr()->CloseAll(); // close all database connections +#endif + } EndAllAction(); } SwDBMgr* SwEditShell::GetNewDBMgr() const { +#if HAVE_FEATURE_DBCONNECTIVITY return GetDoc()->GetNewDBMgr(); +#else + return NULL; +#endif } /// insert field type |