From 655cb1d8704164ea86cfb1921657e03592a5b259 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 21 Jul 2010 18:02:57 +0000 Subject: [PATCH] * Make the locale settings apply immediately when the user clicks on something rather than on preflet close. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37666 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/LocaleSettings.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/preferences/locale/LocaleSettings.cpp b/src/preferences/locale/LocaleSettings.cpp index 11b3b3c48f..4fc52e4ad1 100644 --- a/src/preferences/locale/LocaleSettings.cpp +++ b/src/preferences/locale/LocaleSettings.cpp @@ -46,10 +46,6 @@ LocaleSettings::Load() status_t LocaleSettings::Save() { - // Send to all running apps to notify them they should update their settings - fMessage.what = B_LOCALE_CHANGED; - be_roster->Broadcast(&fMessage); - // Save on disk for next time we reboot BFile file; status_t err; @@ -109,5 +105,12 @@ LocaleSettings::UpdateFrom(BMessage* message) fMessage.ReplaceString("longTimeFormat", messageContent); fSaved = false; } + + if (fSaved == false) { + // Send to all running apps to notify them they should update their + // settings + fMessage.what = B_LOCALE_CHANGED; + be_roster->Broadcast(&fMessage); + } }