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