summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-04-24 07:25:53 +0000
committerMathias Bauer <mba@openoffice.org>2002-04-24 07:25:53 +0000
commit135d7199a70abb23fc78938d0bced077b5fbee4a (patch)
tree107adfc945d9d46a232f6d94e76bca01004ce5ba /basctl
parent1283883e6e8c96feea19156c973bd8c02f27641f (diff)
#98405#: ask for overwriting in doubleclick handler
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/macrodlg.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index d30bbaaf42dc..496534068ef0 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: macrodlg.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: mba $ $Date: 2002-04-22 17:08:03 $
+ * last change: $Author: mba $ $Date: 2002-04-24 08:25:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -564,6 +564,13 @@ void MacroChooser::CheckButtons()
IMPL_LINK_INLINE_START( MacroChooser, MacroDoubleClickHdl, SvTreeListBox *, EMPTYARG )
{
StoreMacroDescription();
+ if ( nMode == MACROCHOOSER_RECORDING )
+ {
+ SbMethod* pMethod = GetMacro();
+ if ( pMethod && !QueryReplaceMacro( pMethod->GetName(), this ) )
+ return 0;
+ }
+
EndDialog( MACRO_OK_RUN );
return 0;
}