Change order of "New folder" entry in move menu.

Change-Id: Icb12d893514b1f1505d6ff84aeaa6bbcef136eec
This commit is contained in:
Rafael Dominguez 2012-07-02 16:56:25 -04:30
parent 1fdbf7163a
commit 90256a1125

View file

@ -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),