From 2f605e9fd7440ed162317844cca61dc8540da5d0 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 28 Jun 2014 19:40:01 -0400 Subject: [PATCH] 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. --- .../debugger/user_interface/gui/team_window/TeamWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp index 22baa3b724..a32a69b479 100644 --- a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp @@ -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);