From 360ec557b2e654b88b11fca4bfbad6e8fe97f892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 29 Jan 2015 09:03:11 +0100 Subject: NOISSUE remove notification checker form application object --- gui/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/MainWindow.cpp') diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 27b8563b..3bffb862 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -622,8 +622,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi auto updater = MMC->updateChecker(); updater->checkForUpdate(false); } - - connect(MMC->notificationChecker().get(), + m_notificationChecker.reset(new NotificationChecker()); + connect(m_notificationChecker.get(), &NotificationChecker::notificationCheckFinished, this, &MainWindow::notificationsChanged); } @@ -956,7 +956,7 @@ QString intListToString(const QList &list) void MainWindow::notificationsChanged() { QList entries = - MMC->notificationChecker()->notificationEntries(); + m_notificationChecker->notificationEntries(); QList shownNotifications = stringToIntList(MMC->settings()->get("ShownNotifications").toString()); for (auto it = entries.begin(); it != entries.end(); ++it) -- cgit v1.2.3