Skip to content

Commit

Permalink
Merge pull request xbmc#4551 from Montellese/settings_language_fix
Browse files Browse the repository at this point in the history
fix crash when changing language from non-GUI thread (fixes xbmc#15113)
  • Loading branch information
jmarshallnz authored and t-nelson committed Apr 15, 2014
1 parent 52d89ea commit 5248614
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion xbmc/Application.cpp
Expand Up @@ -1669,7 +1669,10 @@ void CApplication::OnSettingChanged(const CSetting *setting)
CApplicationMessenger::Get().ExecBuiltIn("ReloadSkin");
}
else if (settingId == "lookandfeel.skinzoom")
g_windowManager.SendMessage(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_WINDOW_RESIZE);
{
CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_WINDOW_RESIZE);
g_windowManager.SendThreadMessage(msg);
}
else if (StringUtils::StartsWithNoCase(settingId, "audiooutput."))
{
// AE is master of audio settings and needs to be informed first
Expand Down
3 changes: 2 additions & 1 deletion xbmc/LangInfo.cpp
Expand Up @@ -20,6 +20,7 @@

#include "LangInfo.h"
#include "Application.h"
#include "ApplicationMessenger.h"
#include "FileItem.h"
#include "Util.h"
#include "filesystem/Directory.h"
Expand Down Expand Up @@ -462,7 +463,7 @@ bool CLangInfo::SetLanguage(const std::string &strLanguage)
// also tell our weather and skin to reload as these are localized
g_weatherManager.Refresh();
g_PVRManager.LocalizationChanged();
g_application.ReloadSkin();
CApplicationMessenger::Get().ExecBuiltIn("ReloadSkin", false);

return true;
}
Expand Down

0 comments on commit 5248614

Please sign in to comment.