fixed escape closes FindWindow

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4101 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2003-07-27 06:38:37 +00:00
parent a50cf5ac37
commit 59f0a7eb40
2 changed files with 1 additions and 4 deletions

View File

@ -80,7 +80,7 @@ FindWindow::FindWindow(BRect frame, BHandler *_handler, BString *searchString, b
void FindWindow::MessageReceived(BMessage *msg){
switch(msg->what){
case B_QUIT_REQUESTED:
QuitRequested();
Quit();
break;
case MSG_SEARCH:
ExtractToMsg(new BMessage(MSG_SEARCH));
@ -152,6 +152,4 @@ void FindWindow::ExtractToMsg(BMessage *message){
PostMessage(B_QUIT_REQUESTED);
}

View File

@ -8,7 +8,6 @@ class FindWindow : public BWindow {
virtual void MessageReceived(BMessage* message);
virtual void DispatchMessage(BMessage* message, BHandler* handler);
private:
void ExtractToMsg(BMessage *message);