[builtins] do not restart visualization if it has no settings.
authorAnton Fedchin <afedchin@ruswizards.com>
Fri, 19 Jun 2015 09:16:58 +0000 (12:16 +0300)
committerAnton Fedchin <afedchin@ruswizards.com>
Fri, 19 Jun 2015 09:16:58 +0000 (12:16 +0300)
xbmc/interfaces/Builtins.cpp

index db5bc8b..217dc04 100644 (file)
@@ -1760,8 +1760,8 @@ int CBuiltins::Execute(const std::string& execString)
     ADDON::TYPE type = TranslateType(params[0]);
     if (CAddonMgr::Get().GetDefault(type, addon))
     {
-      CGUIDialogAddonSettings::ShowAndGetInput(addon);
-      if (type == ADDON_VIZ)
+      bool changed = CGUIDialogAddonSettings::ShowAndGetInput(addon);
+      if (type == ADDON_VIZ && changed)
         g_windowManager.SendMessage(GUI_MSG_VISUALISATION_RELOAD, 0, 0);
     }
   }