Init fAboutWindow NULL first
This commit is contained in:
@@ -148,13 +148,14 @@ NetworkStatusView::~NetworkStatusView()
|
|||||||
void
|
void
|
||||||
NetworkStatusView::_Init()
|
NetworkStatusView::_Init()
|
||||||
{
|
{
|
||||||
|
fAboutWindow = NULL;
|
||||||
|
|
||||||
for (int i = 0; i < kStatusCount; i++) {
|
for (int i = 0; i < kStatusCount; i++) {
|
||||||
fTrayIcons[i] = NULL;
|
fTrayIcons[i] = NULL;
|
||||||
fNotifyIcons[i] = NULL;
|
fNotifyIcons[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_UpdateBitmaps();
|
_UpdateBitmaps();
|
||||||
fAboutWindow = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <AboutWindow.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <ControlLook.h>
|
#include <ControlLook.h>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include "DriverInterface.h"
|
#include "DriverInterface.h"
|
||||||
|
|
||||||
|
|
||||||
|
class BAboutWindow;
|
||||||
class BFile;
|
class BFile;
|
||||||
|
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ private:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
PowerStatusDriverInterface* fDriverInterface;
|
PowerStatusDriverInterface* fDriverInterface;
|
||||||
|
BAboutWindow* fAboutWindow;
|
||||||
|
|
||||||
bool fShowLabel;
|
bool fShowLabel;
|
||||||
bool fShowTime;
|
bool fShowTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user