Compare commits

...

1 Enmetoj

Author SHA1 Message Date
Jaidyn Ann 09b00823db Fix crash on first startup of Daemon (?) 2021-10-11 12:42:13 -05:00
5 changed files with 7 additions and 7 deletions

View File

@ -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"

View File

@ -13,7 +13,6 @@ class BMessage;
class BMessageRunner;
class FeedController;
class MainWindow;
class Notifier;
class App : public BApplication

View File

@ -22,7 +22,6 @@
#include "FeedEditWindow.h"
#include "FeedListItem.h"
#include "FeedListView.h"
#include "Notifier.h"
#include "SourceListItem.h"
#include "SourceManager.h"

View File

@ -19,7 +19,6 @@
#include "FeedController.h"
#include "FeedListView.h"
#include "FeedsView.h"
#include "Notifier.h"
#include "UpdatesView.h"

View File

@ -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();
}