Commit 98cd8632 authored by Allen Winter's avatar Allen Winter
Browse files

utils.cpp - handle ICalDrag::populateMimeData return value

in createMimeData don't ignore the return value from
KCalUtils::ICalDrag::populateMimeData()
parent 7fa4ab6d
......@@ -206,9 +206,11 @@ QMimeData *CalendarSupport::createMimeData(const Akonadi::Item::List &items)
mimeData->setUrls(urls);
KCalUtils::ICalDrag::populateMimeData(mimeData.get(), cal);
return mimeData.release();
if (KCalUtils::ICalDrag::populateMimeData(mimeData.get(), cal)) {
return mimeData.release();
} else {
return nullptr;
}
}
QMimeData *CalendarSupport::createMimeData(const Akonadi::Item &item)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment