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:
parent
c90ebe1e5a
commit
7ee685d20c
@ -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) {
|
||||
|
@ -86,6 +86,10 @@ VolumeWindow::MessageReceived(BMessage *msg)
|
||||
} else
|
||||
Quit();
|
||||
break;
|
||||
|
||||
case B_QUIT_REQUESTED:
|
||||
Quit();
|
||||
break;
|
||||
|
||||
default:
|
||||
BWindow::MessageReceived(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user