summaryrefslogtreecommitdiffstats
path: root/logic/updater/NotificationChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/updater/NotificationChecker.cpp')
-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;