* 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:
parent
d1fe803469
commit
c7d112ff6a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user