diff options
| author | Rene Gollent <anevilyak@gmail.com> | 2012-07-18 23:21:06 -0400 |
|---|---|---|
| committer | Rene Gollent <anevilyak@gmail.com> | 2012-07-18 23:21:06 -0400 |
| commit | 03aa456e2effa939895246dce37cd2454f5534d7 (patch) | |
| tree | a357cec84a258b44c5a327390d135fac4e32a2ef | |
| parent | ed15f1b8fb8b635349829c655678177ad3032ccc (diff) | |
Fix mouse down handling error.hrev44354
- When handling a mouse click, the button was hardcoded instead of
passing the actual button clicked by the user. Spotted by Chris
Roberts.
| -rw-r--r-- | src/kits/interface/ColumnListView.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kits/interface/ColumnListView.cpp b/src/kits/interface/ColumnListView.cpp index 8123c690d3..b31cf0c0a4 100644 --- a/src/kits/interface/ColumnListView.cpp +++ b/src/kits/interface/ColumnListView.cpp @@ -3512,8 +3512,11 @@ OutlineView::MouseDown(BPoint position) fCurrentRow = new_row; fCurrentField = new_field; fCurrentCode = B_INSIDE_VIEW; + BMessage* message = Window()->CurrentMessage(); + int32 buttons = 1; + message->FindInt32("buttons", &buttons); fCurrentColumn->MouseDown(fMasterView, fCurrentRow, - fCurrentField, fFieldRect, position, 1); + fCurrentField, fFieldRect, position, buttons); } if (!fEditMode) { |
