aboutsummaryrefslogtreecommitdiff
path: root/launcher/notifications/NotificationChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/notifications/NotificationChecker.cpp')
-rw-r--r--launcher/notifications/NotificationChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/notifications/NotificationChecker.cpp b/launcher/notifications/NotificationChecker.cpp
index 00c918f8..c08bcdcb 100644
--- a/launcher/notifications/NotificationChecker.cpp
+++ b/launcher/notifications/NotificationChecker.cpp
@@ -52,12 +52,12 @@ void NotificationChecker::checkForNotifications()
{
return;
}
- m_checkJob.reset(new NetJob("Checking for notifications"));
+ m_checkJob = new NetJob("Checking for notifications", APPLICATION->network());
auto entry = APPLICATION->metacache()->resolveEntry("root", "notifications.json");
entry->setStale(true);
m_checkJob->addNetAction(m_download = Net::Download::makeCached(m_notificationsUrl, entry));
connect(m_download.get(), &Net::Download::succeeded, this, &NotificationChecker::downloadSucceeded);
- m_checkJob->start(APPLICATION->network());
+ m_checkJob->start();
}
void NotificationChecker::downloadSucceeded(int)