void TodoDialog::on_saveButton_clicked() { MetricsService::instance()->sendEvent("todo list", "todo item stored"); updateCurrentCalendarItemWithFormData(); OwnCloudService *ownCloud = new OwnCloudService(crypto, this); // update the local icsData from server ownCloud->updateICSDataOfCalendarItem(¤tCalendarItem); // post the calendar item to the server ownCloud->postCalendarItemToServer(currentCalendarItem, this); qDebug() << currentCalendarItem; }
void TodoDialog::on_saveButton_clicked() { MetricsService::instance()->sendVisitIfEnabled("todo/item/stored"); updateCurrentCalendarItemWithFormData(); OwnCloudService *ownCloud = OwnCloudService::instance(); // update the local icsData from server ownCloud->updateICSDataOfCalendarItem(¤tCalendarItem); // post the calendar item to the server ownCloud->postCalendarItemToServer(currentCalendarItem, this); qDebug() << currentCalendarItem; QSettings settings; if (settings.value("closeTodoListAfterSave").toBool()) { close(); } }