Author: pulkomandy Date: 2010-07-21 20:02:57 +0200 (Wed, 21 Jul 2010) New Revision: 37666 Changeset: http://dev.haiku-os.org/changeset/37666 Modified: haiku/trunk/src/preferences/locale/LocaleSettings.cpp Log: * Make the locale settings apply immediately when the user clicks on something rather than on preflet close. Modified: haiku/trunk/src/preferences/locale/LocaleSettings.cpp =================================================================== --- haiku/trunk/src/preferences/locale/LocaleSettings.cpp 2010-07-21 18:01:59 UTC (rev 37665) +++ haiku/trunk/src/preferences/locale/LocaleSettings.cpp 2010-07-21 18:02:57 UTC (rev 37666) @@ -46,10 +46,6 @@ 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 @@ 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); + } }