Kaydet (Commit) 73a809cb authored tarafından Noel Grandin's avatar Noel Grandin

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

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

Change-Id: Ib10f97bbe46d20db663047d2f35ec4850df839fa
üst 7d581c5f
...@@ -152,10 +152,15 @@ namespace sdbtools ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment