summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/control/templatelocalview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 7b93c79f1cf3..cd3642bf7d1a 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -190,8 +190,8 @@ void TemplateLocalView::createContextMenu(const bool bIsDefault)
pItemMenu->InsertItem(MNI_DEFAULT_TEMPLATE,SfxResId(STR_RESET_DEFAULT).toString());
pItemMenu->InsertSeparator();
- pItemMenu->InsertItem(MNI_DELETE,SfxResId(STR_DELETE).toString());
pItemMenu->InsertItem(MNI_RENAME,SfxResId(STR_RENAME).toString());
+ pItemMenu->InsertItem(MNI_DELETE,SfxResId(STR_DELETE).toString());
pItemMenu->InsertSeparator();
deselectItems();
maSelectedItem->setSelection(true);
@@ -212,9 +212,6 @@ IMPL_LINK_TYPED(TemplateLocalView, ContextMenuSelectHdl, Menu*, pMenu, bool)
case MNI_EDIT:
maEditTemplateHdl.Call(maSelectedItem);
break;
- case MNI_DELETE:
- maDeleteTemplateHdl.Call(maSelectedItem);
- break;
case MNI_RENAME:
{
ScopedVclPtrInstance< InputDialog > m_pTitleEditDlg( SfxResId(STR_RENAME_TEMPLATE).toString(), this);
@@ -232,6 +229,9 @@ IMPL_LINK_TYPED(TemplateLocalView, ContextMenuSelectHdl, Menu*, pMenu, bool)
}
}
break;
+ case MNI_DELETE:
+ maDeleteTemplateHdl.Call(maSelectedItem);
+ break;
case MNI_DEFAULT_TEMPLATE:
maDefaultTemplateHdl.Call(maSelectedItem);
break;