From 71e1410b9fd785b62ece869f3d5448c14fdcba83 Mon Sep 17 00:00:00 2001 From: Jan Dalheimer Date: Fri, 3 Jan 2014 20:39:21 +0100 Subject: [PATCH] Don't try to check for notifications if we don't have a URL for it --- logic/updater/NotificationChecker.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/logic/updater/NotificationChecker.cpp b/logic/updater/NotificationChecker.cpp index 8540b5a1..40367eac 100644 --- a/logic/updater/NotificationChecker.cpp +++ b/logic/updater/NotificationChecker.cpp @@ -31,6 +31,13 @@ QList NotificationChecker::notificationE void NotificationChecker::checkForNotifications() { + if (!m_notificationsUrl.isValid()) + { + QLOG_ERROR() << "Failed to check for notifications. No notifications URL set." + << "If you'd like to use MultiMC's notification system, please pass the " + "URL to CMake at compile time."; + return; + } if (m_checkJob) { return;