Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9d21f32f authored by Laurent Montel's avatar Laurent Montel 😁

in encapsulated message first node is empty => fix dnd

parent dbacc93e
......@@ -751,7 +751,7 @@ bool AttachmentURLHandler::handleDrag(const QUrl &url, ViewerPrivate *window) co
}
if (node->header<KMime::Headers::Subject>()) {
if (!node->contents().isEmpty()) {
node = node->contents().constFirst();
node = node->contents().constLast();
window->nodeHelper()->writeNodeToTempFile(node);
}
}
......
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