summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/QueryTableView.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-08-09 12:30:50 +0000
committerOcke Janssen <oj@openoffice.org>2001-08-09 12:30:50 +0000
commit21ad4b831f6abd1a928f586515174db375c599e2 (patch)
treecdf5890cb6704b09b3de31347bd7487b17ca6f3a /dbaccess/source/ui/querydesign/QueryTableView.cxx
parent8a4dffb119ba00df49af7241aa4413bc6f78dc65 (diff)
#90791# catch(WrappException) impl and delete old data
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryTableView.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/QueryTableView.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx
index 021687558389..4a5c528e496f 100644
--- a/dbaccess/source/ui/querydesign/QueryTableView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: QueryTableView.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: oj $ $Date: 2001-08-09 09:59:51 $
+ * last change: $Author: oj $ $Date: 2001-08-09 13:30:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -560,6 +560,13 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r
OQueryTabWinShowUndoAct* pUndoAction = new OQueryTabWinShowUndoAct(this);
pUndoAction->SetTabWin(pNewTabWin); // Fenster
sal_Bool bSuccess = ShowTabWin(pNewTabWin, pUndoAction,bAppend);
+ if(!bSuccess)
+ {
+ delete pUndoAction;
+ if(bAppend)
+ delete pNewTabWinData;
+ return;
+ }
// Relationen zwischen den einzelnen Tabellen anzeigen
OTableWindowMap* pTabWins = GetTabWinMap();