diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-03-06 13:30:45 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-03-06 13:30:45 +0000 |
commit | 24a00d0043a485cd768ebd2a80a2972a698d75e9 (patch) | |
tree | 79ef0384f1ccdf7ee4708ea74809624929c5c185 /dbaccess/source/ui/relationdesign/RelationController.cxx | |
parent | bbcfc130f0e9ed5e5094941c9023a678e61fab05 (diff) |
prevent GPF if the data source nos not support relations (not finally fixed, yet - the frame still needs to be closed
Diffstat (limited to 'dbaccess/source/ui/relationdesign/RelationController.cxx')
-rw-r--r-- | dbaccess/source/ui/relationdesign/RelationController.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx index 4abd23eb9315..d3fb91a601eb 100644 --- a/dbaccess/source/ui/relationdesign/RelationController.cxx +++ b/dbaccess/source/ui/relationdesign/RelationController.cxx @@ -2,9 +2,9 @@ * * $RCSfile: RelationController.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: fs $ $Date: 2001-03-01 13:29:19 $ + * last change: $Author: fs $ $Date: 2001-03-06 14:30:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -337,9 +337,12 @@ void SAL_CALL ORelationController::initialize( const Sequence< Any >& aArguments // check if this database supports relations if(!m_xConnection->getMetaData()->supportsIntegrityEnhancementFacility()) { - OSQLMessageBox aDlg(getView(),ModuleRes(STR_RELATIONDESIGN),ModuleRes(STR_RELATIONDESIGN_NOT_AVAILABLE)); - aDlg.Execute(); + { + OSQLMessageBox aDlg(getView(),ModuleRes(STR_RELATIONDESIGN),ModuleRes(STR_RELATIONDESIGN_NOT_AVAILABLE)); + aDlg.Execute(); + } dispose(); + throw Exception(::rtl::OUString::createFromAscii("The data source does not support relations."), static_cast< XController* >(this)); } Reference<XTablesSupplier> xSup(m_xConnection,UNO_QUERY); |