Desklink: Close the Volume Window after dropping the replicant

When dropping a replicant of the Volume Control, close the volume window.

Enhancement #7718.
This commit is contained in:
Philippe Saint-Pierre 2012-02-22 20:00:43 -05:00
parent c90ebe1e5a
commit 7ee685d20c
2 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,8 @@ VolumeControl::VolumeControl(BMessage* archive)
volumeWhich = VOLUME_USE_MIXER;
fMixerControl = new MixerControl(volumeWhich);
archive->SendReply(new BMessage(B_QUIT_REQUESTED));
}
@ -329,6 +331,10 @@ VolumeControl::MessageReceived(BMessage* msg)
break;
}
case B_QUIT_REQUESTED:
Window()->MessageReceived(msg);
break;
case kMsgReconnectVolume:
_ConnectVolume();
if (!fMixerControl->Connected() && --fConnectRetries > 1) {

View File

@ -86,6 +86,10 @@ VolumeWindow::MessageReceived(BMessage *msg)
} else
Quit();
break;
case B_QUIT_REQUESTED:
Quit();
break;
default:
BWindow::MessageReceived(msg);