diff options
author | Stephan Bergmann <sb@openoffice.org> | 2002-07-16 15:09:53 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2002-07-16 15:09:53 +0000 |
commit | 22b1e280922e19becb2b2acfdedfc897521170d4 (patch) | |
tree | a2c661f2aa98f9bd69fb5c7981bd5ac01f51528c /basctl | |
parent | 1ad926332abfa439b1c188cb555d048c6005ceab (diff) |
#101325# In DlgEditor::ShowDialog, dispose dialog after use.
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index e315ca33747d..353fc87a0d71 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dlged.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: tbe $ $Date: 2002-04-24 15:02:12 $ + * last change: $Author: sb $ $Date: 2002-07-16 16:09:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -142,7 +142,6 @@ #include <comphelper/processfactory.hxx> #endif - using namespace comphelper; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -174,6 +173,10 @@ void DlgEditor::ShowDialog() uno::Reference< awt::XDialog > xD( xDlg, uno::UNO_QUERY ); xD->execute(); + + uno::Reference< lang::XComponent > xComponent(xDlg, uno::UNO_QUERY); + if (xComponent.is()) + xComponent->dispose(); } //---------------------------------------------------------------------------- |