Fix crash on first startup of Daemon (?)
This commit is contained in:
parent
492ebaa2e4
commit
1d8433f598
|
@ -17,7 +17,6 @@
|
|||
#include "FeedsView.h"
|
||||
#include "MainWindow.h"
|
||||
#include "Mimetypes.h"
|
||||
#include "Notifier.h"
|
||||
#include "Preferences.h"
|
||||
#include "SourceManager.h"
|
||||
#include "Util.h"
|
||||
|
|
|
@ -13,7 +13,6 @@ class BMessage;
|
|||
class BMessageRunner;
|
||||
class FeedController;
|
||||
class MainWindow;
|
||||
class Notifier;
|
||||
|
||||
|
||||
class App : public BApplication
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "FeedEditWindow.h"
|
||||
#include "FeedListItem.h"
|
||||
#include "FeedListView.h"
|
||||
#include "Notifier.h"
|
||||
#include "SourceListItem.h"
|
||||
#include "SourceManager.h"
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "FeedController.h"
|
||||
#include "FeedListView.h"
|
||||
#include "FeedsView.h"
|
||||
#include "Notifier.h"
|
||||
#include "UpdatesView.h"
|
||||
|
||||
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
#include <StringFormat.h>
|
||||
#include <Notification.h>
|
||||
|
||||
#include "App.h"
|
||||
#include "Daemon.h"
|
||||
#include "FeedController.h"
|
||||
#include "Preferences.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
|
@ -128,8 +129,11 @@ Notifier::_SendUpdatedNotification()
|
|||
notifyNew.SetContent(notifyText);
|
||||
|
||||
entry_ref feedsRef;
|
||||
BEntry(((App*)be_app)->fPreferences->EntryDir()).GetRef(&feedsRef);
|
||||
notifyNew.SetOnClickFile(&feedsRef);
|
||||
const char* entryDir = ((App*)be_app)->fPreferences->EntryDir();
|
||||
if (entryDir != NULL) {
|
||||
BEntry(entryDir).GetRef(&feedsRef);
|
||||
notifyNew.SetOnClickFile(&feedsRef);
|
||||
}
|
||||
|
||||
notifyNew.Send();
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue