From 90256a112507998b89af8eecb678e6e12c5dfbd1 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Mon, 2 Jul 2012 16:56:25 -0430 Subject: [PATCH] Change order of "New folder" entry in move menu. Change-Id: Icb12d893514b1f1505d6ff84aeaa6bbcef136eec --- sfx2/source/doc/templatedlg.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 12ddd1c7c571..e35542b6abcd 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -338,18 +338,15 @@ IMPL_LINK(SfxTemplateManagerDlg, TBXDropdownHdl, ToolBox*, pBox) PopupMenu *pMoveMenu = new PopupMenu; pMoveMenu->SetSelectHdl(LINK(this,SfxTemplateManagerDlg,MoveMenuSelectHdl)); - pMoveMenu->InsertItem(MNI_MOVE_NEW,SfxResId(STR_MOVE_NEW).toString()); - if (!aNames.empty()) { - pMoveMenu->InsertSeparator(); - for (size_t i = 0, n = aNames.size(); i < n; ++i) pMoveMenu->InsertItem(MNI_MOVE_FOLDER_BASE+i,aNames[i]); } pMoveMenu->InsertSeparator(); + pMoveMenu->InsertItem(MNI_MOVE_NEW,SfxResId(STR_MOVE_NEW).toString()); pMoveMenu->InsertItem(MNI_MOVE_DELETE,SfxResId(STR_MOVE_DELETE).toString()); pMoveMenu->Execute(pBox,pBox->GetItemRect(TBI_TEMPLATE_MOVE),