From 21ad4b831f6abd1a928f586515174db375c599e2 Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Thu, 9 Aug 2001 12:30:50 +0000 Subject: #90791# catch(WrappException) impl and delete old data --- dbaccess/source/ui/querydesign/QueryTableView.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/querydesign/QueryTableView.cxx') 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(); -- cgit