summaryrefslogtreecommitdiffstats
path: root/logic/updater
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-01-03 20:39:21 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-01-03 20:39:21 +0100
commit71e1410b9fd785b62ece869f3d5448c14fdcba83 (patch)
tree6f2afa230b445dd91641d34670f7636245051de4 /logic/updater
parentdf9f9a34ef325b55c34293cf4e3367c50084416b (diff)
downloadMultiMC-71e1410b9fd785b62ece869f3d5448c14fdcba83.tar
MultiMC-71e1410b9fd785b62ece869f3d5448c14fdcba83.tar.gz
MultiMC-71e1410b9fd785b62ece869f3d5448c14fdcba83.tar.lz
MultiMC-71e1410b9fd785b62ece869f3d5448c14fdcba83.tar.xz
MultiMC-71e1410b9fd785b62ece869f3d5448c14fdcba83.zip
Don't try to check for notifications if we don't have a URL for it
Diffstat (limited to 'logic/updater')
-rw-r--r--logic/updater/NotificationChecker.cpp7
1 files changed, 7 insertions, 0 deletions
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::NotificationEntry> 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;