Bug 64984 - EDITING: Creating table with GUI - table could not be saved

This bug was introduced by my commit
002aab3090
"fdo#46808, convert sdb::tools::ConnectionTools to new style"

Change-Id: Ib10f97bbe46d20db663047d2f35ec4850df839fa
This commit is contained in:
Noel Grandin
2013-05-30 08:18:16 +02:00
parent 7d581c5ffe
commit 73a809cba8

View File

@@ -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();