summaryrefslogtreecommitdiffstats
path: root/gui/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-29 09:03:11 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-02 00:14:06 +0200
commit360ec557b2e654b88b11fca4bfbad6e8fe97f892 (patch)
tree05a13c157cb73571bcfc8e7e2be65f9be5c62eda /gui/MainWindow.cpp
parent7334b8e5204f76f83409a8e2d48b31b50f86e413 (diff)
downloadMultiMC-360ec557b2e654b88b11fca4bfbad6e8fe97f892.tar
MultiMC-360ec557b2e654b88b11fca4bfbad6e8fe97f892.tar.gz
MultiMC-360ec557b2e654b88b11fca4bfbad6e8fe97f892.tar.lz
MultiMC-360ec557b2e654b88b11fca4bfbad6e8fe97f892.tar.xz
MultiMC-360ec557b2e654b88b11fca4bfbad6e8fe97f892.zip
NOISSUE remove notification checker form application object
Diffstat (limited to 'gui/MainWindow.cpp')
-rw-r--r--gui/MainWindow.cpp6
1 files changed, 3 insertions, 3 deletions
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<int> &list)
void MainWindow::notificationsChanged()
{
QList<NotificationChecker::NotificationEntry> entries =
- MMC->notificationChecker()->notificationEntries();
+ m_notificationChecker->notificationEntries();
QList<int> shownNotifications =
stringToIntList(MMC->settings()->get("ShownNotifications").toString());
for (auto it = entries.begin(); it != entries.end(); ++it)