mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
missing ifdef GC_HAVE_ICAL
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user