Call be_locale->GetAppCatalog() after creation of the application and before creation of the window. Should not crash anymore.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33971 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2009-11-10 01:19:00 +00:00
parent c93e2c436d
commit 306bee96be
+4 -3
View File
@@ -47,6 +47,7 @@ public:
private:
BackgroundsWindow* fWindow;
BCatalog fCatalog;
};
@@ -56,8 +57,10 @@ private:
BackgroundsApplication::BackgroundsApplication()
:
BApplication(kSignature),
fWindow(new BackgroundsWindow())
fWindow(NULL)
{
be_locale->GetAppCatalog(&fCatalog);
fWindow = new BackgroundsWindow();
fWindow->Show();
}
@@ -137,8 +140,6 @@ int
main(int argc, char** argv)
{
BackgroundsApplication app;
BCatalog cat;
be_locale->GetAppCatalog(&cat);
app.Run();
return 0;
}