* 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
This commit is contained in:
Adrien Destugues 2010-07-21 18:02:57 +00:00
parent 74baa1d7f1
commit 655cb1d870

View File

@ -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);
}
}