Fix selection of attachment on right click.
* Fixed during of GCI 2011. * Fixes #7982 Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
This commit is contained in:
parent
8ff2ca22f7
commit
35636bd21f
@ -426,7 +426,9 @@ TListView::MouseDown(BPoint point)
|
||||
int32 buttons;
|
||||
Looper()->CurrentMessage()->FindInt32("buttons", &buttons);
|
||||
|
||||
if ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0) {
|
||||
BListView::MouseDown(point);
|
||||
|
||||
if ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0 && IndexOf(point) >= 0) {
|
||||
BPopUpMenu menu("enclosure", false, false);
|
||||
menu.SetFont(be_plain_font);
|
||||
menu.AddItem(new BMenuItem(B_TRANSLATE("Open attachment"),
|
||||
@ -448,8 +450,7 @@ TListView::MouseDown(BPoint point)
|
||||
Window()->PostMessage(item->Command(),fParent);
|
||||
}
|
||||
}
|
||||
} else
|
||||
BListView::MouseDown(point);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user