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()
|
ShowImageApp::QuitRequested()
|
||||||
{
|
{
|
||||||
// Give the windows a chance to prompt the user if there are changes
|
// Give the windows a chance to prompt the user if there are changes
|
||||||
BMessage msg(B_QUIT_REQUESTED);
|
bool result = BApplication::QuitRequested();
|
||||||
BroadcastToWindows(&msg);
|
if (result)
|
||||||
if (CountWindows() <= WINDOWS_TO_IGNORE) {
|
|
||||||
be_clipboard->StopWatching(be_app_messenger);
|
be_clipboard->StopWatching(be_app_messenger);
|
||||||
// tell clipboard we don't want anymore notification
|
// tell clipboard we don't want anymore notification
|
||||||
|
|
||||||
return true;
|
return result;
|
||||||
} else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user