Don't try to check for notifications if we don't have a URL for it

This commit is contained in:
Jan Dalheimer 2014-01-03 20:39:21 +01:00
parent df9f9a34ef
commit 71e1410b9f

View File

@ -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;