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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user