diff options
author | Ted Gould <ted@gould.cx> | 2014-10-16 11:11:21 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-16 11:11:21 -0500 |
commit | 1c9b9820bff54e5b99e8a0833eab1093bc070ae7 (patch) | |
tree | 303f446dcf3303e17361a84dbeef7a1a30ebe219 /src/volume-control.vala | |
parent | 16a72ae6f4c18c621e16e259bc9122cdaf39eb6b (diff) | |
parent | 4a8ee52ea141103bcb632069755af77ad510de9e (diff) | |
download | ayatana-indicator-sound-1c9b9820bff54e5b99e8a0833eab1093bc070ae7.tar.gz ayatana-indicator-sound-1c9b9820bff54e5b99e8a0833eab1093bc070ae7.tar.bz2 ayatana-indicator-sound-1c9b9820bff54e5b99e8a0833eab1093bc070ae7.zip |
Align with trunk to prepare for landing there
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 9114d01..6f48c5d 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -586,7 +586,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; |