Disallow deselecting conversation list item

This commit is contained in:
Jaidyn Ann 2021-06-03 23:39:20 -05:00
parent 2e1190ae8d
commit ced04e613a

View File

@ -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);