From 82fc8592fcf4a1c20e846c09b676eaa137f5b24f Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Sun, 24 Jun 2007 04:58:42 +0000 Subject: [PATCH] Fixed bug #1281, which I logged. MediaPlayer was not behaving properly when being asked to quit. The default BApplication::QuitRequested was not playing well with the other quitting logic in MediaPlayer (like in the windows.) This simple "return true" QuitRequested seems to do the trick. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21500 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/MainApp.cpp | 7 +++++++ src/apps/mediaplayer/MainApp.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/apps/mediaplayer/MainApp.cpp b/src/apps/mediaplayer/MainApp.cpp index cbbdb0b664..fb5c5ff3db 100644 --- a/src/apps/mediaplayer/MainApp.cpp +++ b/src/apps/mediaplayer/MainApp.cpp @@ -129,6 +129,13 @@ MainApp::AboutRequested() } +bool +MainApp::QuitRequested() +{ + return true; +} + + int main() { diff --git a/src/apps/mediaplayer/MainApp.h b/src/apps/mediaplayer/MainApp.h index 774c92a023..23ca380e0f 100644 --- a/src/apps/mediaplayer/MainApp.h +++ b/src/apps/mediaplayer/MainApp.h @@ -41,6 +41,7 @@ private: void ArgvReceived(int32 argc, char **argv); void MessageReceived(BMessage *msg); void AboutRequested(); + bool QuitRequested(); private: BWindow * fFirstWindow;