aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2012-02-29 19:33:02 +0100
committerMemphiz <memphis@machzwo.de>2012-02-29 19:38:34 +0100
commitdd522132757b4dcb1d6c7d8125588bc43f12bd46 (patch)
treed79d53cee042299da01024217645142bc41d140e
parent0e026559deb32bb8ee5a791a3e289d01414278da (diff)
[fix] - only show volumebar in setvolume builtin when it has changed - else the volumebar might be shown in unwanted/unneeded situations (it was a kind of regression when adding the volumebar at all to that builtin)
-rw-r--r--xbmc/interfaces/Builtins.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/xbmc/interfaces/Builtins.cpp b/xbmc/interfaces/Builtins.cpp
index 958692cbdf..588be8d04d 100644
--- a/xbmc/interfaces/Builtins.cpp
+++ b/xbmc/interfaces/Builtins.cpp
@@ -826,9 +826,12 @@ int CBuiltins::Execute(const CStdString& execString)
{
int oldVolume = g_application.GetVolume();
int volume = atoi(parameter.c_str());
-
- g_application.SetVolume(volume);
- g_application.getApplicationMessenger().ShowVolumeBar(oldVolume < volume);
+
+ g_application.SetVolume(volume);
+ if(oldVolume != volume)
+ {
+ g_application.getApplicationMessenger().ShowVolumeBar(oldVolume < volume);
+ }
}
else if (execute.Equals("playlist.playoffset"))
{