Don't switch to I_BEAM cursor if the textview isn't editable nor selectable. Fixes bug 246 for real
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16797 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a9b6762f49
commit
c44a5bea8b
@ -3855,9 +3855,8 @@ BTextView::TrackMouse(BPoint where, const BMessage *message, bool force)
|
||||
|
||||
if (message && AcceptsDrop(message))
|
||||
TrackDrag(where);
|
||||
else if (!textRegion.Contains(where))
|
||||
else if ((fSelectable || fEditable) && !textRegion.Contains(where))
|
||||
SetViewCursor(B_CURSOR_I_BEAM, force);
|
||||
// If we are within the selection, switch to the "hand" cursor,
|
||||
else
|
||||
SetViewCursor(B_CURSOR_SYSTEM_DEFAULT, force);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user