* unmark existing marked items in case we add a new item that is marked

i did exactly that way in my code, which messed up the location popup 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27645 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-09-20 10:25:55 +00:00
parent d1fe803469
commit c7d112ff6a

View File

@ -1743,6 +1743,9 @@ BMenu::_AddItem(BMenuItem *item, int32 index)
if (index < 0 || index > fItems.CountItems())
return false;
if (item->IsMarked())
_ItemMarked(item);
if (!fItems.AddItem(item, index))
return false;