Browse Source

Allow moving existing menu item

master
boisso 7 years ago
parent
commit
cac4f22d96
  1. 2
      k-meleon/KmMenu.cpp

2
k-meleon/KmMenu.cpp

@ -99,6 +99,8 @@ void KmMenu::AddItem(KmMenuItem& item, long before)
while (pos) {
KmMenuItem* item2 = &mMenuDef.GetAt(pos);
if (item2->command == item.command) {
RemoveItem(item);
break;
*item2 = item; // Replace old with new
return;
}

Loading…
Cancel
Save