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:
@@ -152,10 +152,15 @@ namespace sdbtools
|
|||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( getMutex() );
|
::osl::MutexGuard aGuard( getMutex() );
|
||||||
|
|
||||||
::comphelper::NamedValueCollection aArguments( _rArguments );
|
|
||||||
|
|
||||||
Reference< XConnection > xConnection;
|
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() )
|
if ( !xConnection.is() )
|
||||||
throw IllegalArgumentException();
|
throw IllegalArgumentException();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user