Fixed a bug of the RosterListView menu.

This commit is contained in:
barrett 2012-10-01 12:29:15 +00:00
parent 8a27f1f3db
commit 9cf1222142

View File

@ -99,10 +99,7 @@ RosterListView::AttachedToWindow()
void void
RosterListView::MessageReceived(BMessage* msg) RosterListView::MessageReceived(BMessage* msg)
{ {
BPoint where; BListItem* item = ItemAt(CurrentSelection());
uint32 buttons;
GetMouse(&where, &buttons);
BListItem* item = ItemAt(IndexOf(where));
RosterItem* ritem = reinterpret_cast<RosterItem*>(item); RosterItem* ritem = reinterpret_cast<RosterItem*>(item);
switch (msg->what) { switch (msg->what) {