From 3daebb3ee0f5aa6438f816696d09ed5a99369a40 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Sun, 28 Jan 2007 19:20:35 +0000 Subject: [PATCH] Changed the application QuitRequested as per Axel's advice. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19995 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageApp.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/apps/showimage/ShowImageApp.cpp b/src/apps/showimage/ShowImageApp.cpp index 0e007d2b4c..cb7cf539e1 100644 --- a/src/apps/showimage/ShowImageApp.cpp +++ b/src/apps/showimage/ShowImageApp.cpp @@ -230,15 +230,12 @@ bool ShowImageApp::QuitRequested() { // Give the windows a chance to prompt the user if there are changes - BMessage msg(B_QUIT_REQUESTED); - BroadcastToWindows(&msg); - if (CountWindows() <= WINDOWS_TO_IGNORE) { + bool result = BApplication::QuitRequested(); + if (result) be_clipboard->StopWatching(be_app_messenger); // tell clipboard we don't want anymore notification - - return true; - } else - return false; + + return result; }