BCatalog was used in the wrong way. Fixes ticket #6198.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer 2010-06-20 04:31:37 +00:00
parent 16023f51f8
commit eb161bde33
2 changed files with 13 additions and 11 deletions

View File

@ -37,6 +37,8 @@
PulseApp::PulseApp(int argc, char **argv)
: BApplication(APP_SIGNATURE)
{
be_locale->GetAppCatalog(&fCatalog);
prefs = new Prefs();
int mini = false, deskbar = false, normal = false;
@ -246,10 +248,6 @@ LoadInDeskbar()
int
main(int argc, char **argv)
{
BCatalog fAppCatalog;
be_locale->GetAppCatalog(&fAppCatalog);
PulseApp *pulseapp = new PulseApp(argc, argv);
pulseapp->Run();
delete pulseapp;

View File

@ -12,19 +12,23 @@
#define PULSEAPP_H
#include <app/Application.h>
#include <Application.h>
#include <Catalog.h>
#include "Prefs.h"
class PulseApp : public BApplication {
public:
PulseApp(int argc, char **argv);
~PulseApp();
public:
PulseApp(int argc, char **argv);
~PulseApp();
Prefs *prefs;
Prefs* prefs;
private:
void BuildPulse();
private:
void BuildPulse();
BCatalog fCatalog;
};
extern bool LastEnabledCPU(int cpu);