Browse Source

Fix replace item in menu

master
Dorian 7 years ago
parent
commit
5f61794dd1
  1. 2
      k-meleon/KmMenu.cpp

2
k-meleon/KmMenu.cpp

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

Loading…
Cancel
Save