diff options
Diffstat (limited to 'dbaccess/source/ui/misc/databaseobjectview.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/databaseobjectview.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/dbaccess/source/ui/misc/databaseobjectview.cxx b/dbaccess/source/ui/misc/databaseobjectview.cxx index 676b26cbf92f..e68f17ffd3ca 100644 --- a/dbaccess/source/ui/misc/databaseobjectview.cxx +++ b/dbaccess/source/ui/misc/databaseobjectview.cxx @@ -232,16 +232,9 @@ namespace dbaui // try whether the designer is a dialog Reference< XExecutableDialog > xDialog( xDesigner, UNO_QUERY_THROW ); - if ( xDialog.is() ) - { - try { AsyncDialogExecutor::executeModalDialogAsync( xDialog ); } - catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION("dbaccess"); } - return nullptr; - } - - Reference< XComponent > xDesignerComponent( xDesigner, UNO_QUERY ); - OSL_ENSURE( xDesignerComponent.is(), "TableDesigner::doCreateView: a designer which is no dialog and no component?" ); - return xDesignerComponent; + try { AsyncDialogExecutor::executeModalDialogAsync( xDialog ); } + catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION("dbaccess"); } + return nullptr; } Reference< XInterface > TableDesigner::impl_getConnectionProvidedDesigner_nothrow( const OUString& _rTableName ) |