diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-25 19:01:00 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-02-09 17:25:39 +0000 |
commit | 605c8d7f4c7b5b431747ced10243e01529b31777 (patch) | |
tree | a42284aed65ec0fe592e420c139d0bf0fb029164 | |
parent | d522ecb71ed1c5cb8472eee0b3bbd6a5fe6fed3e (diff) |
tdf#73059 isDBReadOnly ensure connection before trying to retrieve it
Change-Id: I03f9b8ea72bd6906df61ccf05ead3670d7f90eb7
Reviewed-on: https://gerrit.libreoffice.org/14345
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 889e94a0722b..ee7065d9abc2 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -991,6 +991,7 @@ bool SbaGridControl::IsReadOnlyDB() const if (xColumns.is()) { Reference< XRowSet > xDataSource(xColumns->getParent(), UNO_QUERY); + ::dbtools::ensureRowSetConnection( xDataSource, getContext(), false ); // NOT SURE ABOUT FALSE Reference< XChild > xConn(::dbtools::getConnection(xDataSource),UNO_QUERY); if (xConn.is()) { |