Disallow deselecting conversation list item
This commit is contained in:
parent
2e1190ae8d
commit
ced04e613a
|
@ -47,8 +47,14 @@ ConversationListView::MessageReceived(BMessage* msg)
|
|||
void
|
||||
ConversationListView::MouseDown(BPoint where)
|
||||
{
|
||||
int32 selection = CurrentSelection();
|
||||
|
||||
BListView::MouseDown(where);
|
||||
|
||||
// Don't allow deselcting a room
|
||||
if (CurrentSelection() < 0 && selection >= 0)
|
||||
Select(selection);
|
||||
|
||||
uint32 buttons = 0;
|
||||
Window()->CurrentMessage()->FindInt32("buttons", (int32*)&buttons);
|
||||
|
||||
|
|
Ŝarĝante…
Reference in New Issue