From 48287f3d7faa0d595bb4c52b29f6133e11ddd936 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 21 Jul 2010 15:00:08 +0000 Subject: [PATCH] * Set the default country when closing the preflet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37652 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/TimeFormatSettingsView.cpp | 6 ++++++ src/preferences/locale/TimeFormatSettingsView.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/preferences/locale/TimeFormatSettingsView.cpp b/src/preferences/locale/TimeFormatSettingsView.cpp index 36f3bb82c0..8f7d8ef14f 100644 --- a/src/preferences/locale/TimeFormatSettingsView.cpp +++ b/src/preferences/locale/TimeFormatSettingsView.cpp @@ -354,6 +354,12 @@ FormatView::FormatView(BCountry* country) } +FormatView::~FormatView() +{ + be_locale_roster->SetDefaultCountry(&fCountry); +} + + void FormatView::AttachedToWindow() { diff --git a/src/preferences/locale/TimeFormatSettingsView.h b/src/preferences/locale/TimeFormatSettingsView.h index 624b88cf15..4a0df9b3a0 100644 --- a/src/preferences/locale/TimeFormatSettingsView.h +++ b/src/preferences/locale/TimeFormatSettingsView.h @@ -38,6 +38,7 @@ const uint32 kMenuMessage = 'FRMT'; class FormatView : public BView { public: FormatView(BCountry* country); + ~FormatView(); virtual void MessageReceived(BMessage* message); virtual void AttachedToWindow();