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