diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-07 20:15:06 +0530 |
---|---|---|
committer | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-07 14:47:49 +0000 |
commit | 665844d8dd0cf4b3fc6cdb56f3e155704ba76b00 (patch) | |
tree | 8edad871b5375f26c80ce743a01839e2027a8900 | |
parent | 81f2bbc2fc42688d5f884d3dde58abe4c265694a (diff) |
Switch "Delete" and "Rename" in Template context menu
Change-Id: Ib40a27c25d15c4dd65bbfc4d50f55b16496c7a0a
Reviewed-on: https://gerrit.libreoffice.org/26024
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Tested-by: Akshay Deep <akshaydeepiitr@gmail.com>
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 8 |
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; |