diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-25 19:01:00 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-25 18:19:03 +0000 |
commit | 71ba72260ea9526bbe2003f669bb4f006a907504 (patch) | |
tree | 9676980c2e8c682743ca618a7194e5c65f6c2354 | |
parent | 3d12bdfb243e1efbc368d95d3e42e7d713b63b45 (diff) |
tdf#73059 isDBReadOnly ensure connection before trying to retrieve it
Change-Id: I03f9b8ea72bd6906df61ccf05ead3670d7f90eb7
Reviewed-on: https://gerrit.libreoffice.org/14175
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
-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 cf86c83d0b36..dcd42dc47aeb 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -989,6 +989,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()) { |