Changeset View
Changeset View
Standalone View
Standalone View
src/presentation/availabletaskpagesmodel.cpp
Show First 20 Lines • Show All 324 Lines • ▼ Show 20 Line(s) | 316 | foreach (const auto &droppedArtifact, droppedArtifacts) { | |||
---|---|---|---|---|---|
325 | } | 325 | } | ||
326 | } | 326 | } | ||
327 | return true; | 327 | return true; | ||
328 | } else if (object == m_workdayObject) { | 328 | } else if (object == m_workdayObject) { | ||
329 | foreach (const auto &droppedArtifact, droppedArtifacts) { | 329 | foreach (const auto &droppedArtifact, droppedArtifacts) { | ||
330 | 330 | | |||
331 | if (auto task = droppedArtifact.objectCast<Domain::Task>()) { | 331 | if (auto task = droppedArtifact.objectCast<Domain::Task>()) { | ||
332 | 332 | | |||
333 | task->setStartDate(Utils::DateTime::currentDateTime()); | 333 | task->setStartDate(Utils::DateTime::currentDate()); | ||
334 | const auto job = m_taskRepository->update(task); | 334 | const auto job = m_taskRepository->update(task); | ||
335 | 335 | | |||
336 | installHandler(job, i18n("Cannot update task %1 to Workday", task->title())); | 336 | installHandler(job, i18n("Cannot update task %1 to Workday", task->title())); | ||
337 | } | 337 | } | ||
338 | } | 338 | } | ||
339 | return true; | 339 | return true; | ||
340 | } | 340 | } | ||
341 | 341 | | |||
Show All 9 Lines |