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
This commit is contained in:
parent
880be3310d
commit
3daebb3ee0
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user