From 70597da2b4804bdf6a79b10cdb96b01cda277d33 Mon Sep 17 00:00:00 2001 From: Joachim Seemer Date: Mon, 2 Aug 2010 18:29:55 +0000 Subject: [PATCH] Reverted part of r37829, because using B_COPY to copy selected entries in the hitslist makes it impossible to copy the search string in the text box. Oops. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37850 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/text_search/GrepWindow.cpp | 4 ++-- src/apps/text_search/Model.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/text_search/GrepWindow.cpp b/src/apps/text_search/GrepWindow.cpp index c2ae84386c..2ab6d98937 100644 --- a/src/apps/text_search/GrepWindow.cpp +++ b/src/apps/text_search/GrepWindow.cpp @@ -291,7 +291,7 @@ void GrepWindow::MessageReceived(BMessage *message) _OnTrimSelection(); break; - case B_COPY: + case MSG_COPY_TEXT: _OnCopyText(); break; @@ -455,7 +455,7 @@ GrepWindow::_CreateMenus() B_TRANSLATE("Show files in Tracker"), new BMessage(MSG_SELECT_IN_TRACKER), 'K'); fCopyText = new BMenuItem( - B_TRANSLATE("Copy text to clipboard"), new BMessage(B_COPY), 'C'); + B_TRANSLATE("Copy text to clipboard"), new BMessage(MSG_COPY_TEXT), 'B'); fRecurseLinks = new BMenuItem( B_TRANSLATE("Follow symbolic links"), new BMessage(MSG_RECURSE_LINKS)); diff --git a/src/apps/text_search/Model.h b/src/apps/text_search/Model.h index f1763ef992..81956d8c13 100644 --- a/src/apps/text_search/Model.h +++ b/src/apps/text_search/Model.h @@ -63,6 +63,7 @@ enum { MSG_QUIT_NOW, MSG_TRIM_SELECTION, + MSG_COPY_TEXT, MSG_SELECT_IN_TRACKER, MSG_SELECT_ALL, MSG_OPEN_SELECTION