[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - dbaccess/source

Lionel Elie Mamane lionel at mamane.lu
Mon Feb 9 05:14:12 PST 2015


 dbaccess/source/ui/browser/sbagrid.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6d82d8b51776b349ff58fc15d269840755859d02
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Sun Jan 25 19:01:00 2015 +0100

    tdf#73059 isDBReadOnly ensure connection before trying to retrieve it
    
    Change-Id: I03f9b8ea72bd6906df61ccf05ead3670d7f90eb7
    Reviewed-on: https://gerrit.libreoffice.org/14178
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index c765512..ba1206d 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())
             {


More information about the Libreoffice-commits mailing list