diff options
author | Ted Gould <ted@gould.cx> | 2014-10-09 13:32:42 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-10-09 13:32:42 +0000 |
commit | 9ff12195f5c223ef666f11179f405161513992f1 (patch) | |
tree | 1d4244c53f9b7649f4d6aed11606f182d4024015 /src/volume-control.vala | |
parent | fe008a1d624ae54ae95df3aa4bb0b53bd757721d (diff) | |
parent | f16199d38fdcb6b0ac67db404e8618b6f5b5407f (diff) | |
download | ayatana-indicator-sound-9ff12195f5c223ef666f11179f405161513992f1.tar.gz ayatana-indicator-sound-9ff12195f5c223ef666f11179f405161513992f1.tar.bz2 ayatana-indicator-sound-9ff12195f5c223ef666f11179f405161513992f1.zip |
Show a silent mode checkbox Fixes: 1342151, 1367818
Approved by: PS Jenkins bot
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index ba87de5..29c49f6 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -552,7 +552,8 @@ public class VolumeControl : Object bool set_volume_internal (double volume) { - return_val_if_fail (context.get_state () == Context.State.READY, false); + if (context.get_state () != Context.State.READY) + return false; if (_volume != volume) { _volume = volume; |