TeamWindow: Fix accidental double message sending.

- When we explicitly handle sending B_COPY/B_SELECT_ALL, don't
  then pass control back to BWindow::DispatchMessage(), as that will
  wind up sending the message to the target view twice.
This commit is contained in:
Rene Gollent 2014-06-28 19:40:01 -04:00
parent 632843911c
commit 2f605e9fd7

View File

@ -236,8 +236,10 @@ TeamWindow::DispatchMessage(BMessage* message, BHandler* handler)
case B_COPY:
case B_SELECT_ALL:
BView* focusView = CurrentFocus();
if (focusView != NULL)
if (focusView != NULL) {
focusView->MessageReceived(message);
return;
}
break;
}
BWindow::DispatchMessage(message, handler);