summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-01-25 19:01:00 +0100
committerAndras Timar <andras.timar@collabora.com>2015-02-23 10:32:44 +0100
commit0b329e0e7f1b435430ea65575ae2661a24ca4d25 (patch)
treeca82094e6b4abeacd12b30e5265f11d5caa7faae /dbaccess
parent17c7abf7488e33c17ef8fa7eb3563d4a66e47d41 (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> (cherry picked from commit 605c8d7f4c7b5b431747ced10243e01529b31777)
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx1
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())
{