aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-06 18:48:48 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-07-06 18:48:48 -0400
commit503210d8ee47e21370fc2751ca88b89715221449 (patch)
treea5158c4462173dfe88ddcbdea1f37c5c0d673293
parent5d9874b1df7ea7c0f7e1c2764b4d8cbd2bad7684 (diff)
downloadayatana-indicator-sound-503210d8ee47e21370fc2751ca88b89715221449.tar.gz
ayatana-indicator-sound-503210d8ee47e21370fc2751ca88b89715221449.tar.bz2
ayatana-indicator-sound-503210d8ee47e21370fc2751ca88b89715221449.zip
Don't set player state to "Launching" when the player is already running
-rw-r--r--src/media-player.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/media-player.vala b/src/media-player.vala
index 68a0b38..9c18f10 100644
--- a/src/media-player.vala
+++ b/src/media-player.vala
@@ -126,7 +126,9 @@ public class MediaPlayer: Object {
catch (Error e) {
warning ("unable to launch %s: %s", appinfo.get_name (), e.message);
}
- this.state = "Launching";
+
+ if (this.proxy == null)
+ this.state = "Launching";
}
/**