* 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:
@@ -1743,6 +1743,9 @@ BMenu::_AddItem(BMenuItem *item, int32 index)
|
|||||||
if (index < 0 || index > fItems.CountItems())
|
if (index < 0 || index > fItems.CountItems())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (item->IsMarked())
|
||||||
|
_ItemMarked(item);
|
||||||
|
|
||||||
if (!fItems.AddItem(item, index))
|
if (!fItems.AddItem(item, index))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user