From 73a809cba87eefbb495c5ba53f89b48d671f8230 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 May 2013 08:18:16 +0200 Subject: Bug 64984 - EDITING: Creating table with GUI - table could not be saved This bug was introduced by my commit 002aab309055b7feeeeeb25c1835b6abe6646729 "fdo#46808, convert sdb::tools::ConnectionTools to new style" Change-Id: Ib10f97bbe46d20db663047d2f35ec4850df839fa --- dbaccess/source/sdbtools/connection/connectiontools.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'dbaccess/source/sdbtools') diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx index 4b46d411028f..868ee3c8b375 100644 --- a/dbaccess/source/sdbtools/connection/connectiontools.cxx +++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx @@ -152,10 +152,15 @@ namespace sdbtools { ::osl::MutexGuard aGuard( getMutex() ); - ::comphelper::NamedValueCollection aArguments( _rArguments ); - Reference< XConnection > xConnection; - aArguments.get( "Connection" ) >>= xConnection; + if (_rArguments.getLength()==1 && (_rArguments[0] >>= xConnection)) + { + } + else + { + ::comphelper::NamedValueCollection aArguments( _rArguments ); + aArguments.get( "Connection" ) >>= xConnection; + } if ( !xConnection.is() ) throw IllegalArgumentException(); -- cgit