* Set the default country when closing the preflet.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-07-21 15:00:08 +00:00
parent 2bb43d8246
commit 48287f3d7f
2 changed files with 7 additions and 0 deletions

View File

@ -354,6 +354,12 @@ FormatView::FormatView(BCountry* country)
}
FormatView::~FormatView()
{
be_locale_roster->SetDefaultCountry(&fCountry);
}
void
FormatView::AttachedToWindow()
{

View File

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