summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2002-11-01 11:12:45 +0000
committerAndreas Bregas <ab@openoffice.org>2002-11-01 11:12:45 +0000
commit4fb33921a683c4fa389d353ebea6b0426e8a98fb (patch)
tree52bc9aa451e7e9496f03bbd5aba061c9b007d501 /basctl
parenta63f0a117bbf82d7140317dcc7b20afe12c946c0 (diff)
#104021# MacroChooser handler: Use SFX_APP()->ExecuteSlot() also at another place
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/macrodlg.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index 7be0bc5a6818..33a92d3d099f 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: macrodlg.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: ab $ $Date: 2002-11-01 11:54:47 $
+ * last change: $Author: ab $ $Date: 2002-11-01 12:12:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -802,13 +802,17 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
{
pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON );
}
+ else
+ {
+ SfxAllItemSet Args( SFX_APP()->GetPool() );
+ SfxRequest aRequest( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON, Args );
+ SFX_APP()->ExecuteSlot( aRequest );
+ }
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
if ( pDispatcher )
- {
pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SFX_CALLMODE_ASYNCHRON, &aInfoItem, 0L );
- }
StoreMacroDescription();
EndDialog( MACRO_NEW );
}