missing ifdef GC_HAVE_ICAL

This commit is contained in:
Luuk Hendriks
2018-08-22 00:54:43 +02:00
parent 95fd240577
commit 6979d665d7

View File

@@ -1279,10 +1279,12 @@ LTMSidebar::addEvent()
active = true;
#ifdef GC_HAVE_ICAL
// upload to remote calendar if configured
if (context->athlete->davCalendar->getConfig())
if (!context->athlete->davCalendar->upload(&myevent))
QMessageBox::warning(this, tr("Add Event"), tr("The new event could not be uploaded to your remote calendar."));
#endif
seasons->seasons[seasonindex].events.append(myevent);