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:
parent
632843911c
commit
2f605e9fd7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user