Commit ca27705b authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 350737 - KMail/KF5 Blocking UI Call when Opening ODF Mail Attachement

FIXED-IN: 15.08.2
BUG: 350737
parent 75ca4601
......@@ -745,7 +745,6 @@ void ViewerPrivate::attachmentOpenWith(KMime::Content *node, const KService::Ptr
QString name = mNodeHelper->writeNodeToTempFile(node);
QString linkName = createAtmFileLink(name);
QList<QUrl> lst;
QUrl url;
bool autoDelete = true;
if (linkName.isEmpty()) {
......@@ -755,8 +754,7 @@ void ViewerPrivate::attachmentOpenWith(KMime::Content *node, const KService::Ptr
const QFileDevice::Permissions perms = QFile::permissions(linkName);
QFile::setPermissions(linkName, perms | QFileDevice::ReadUser | QFileDevice::WriteUser);
url.setPath(linkName);
const QUrl url = QUrl::fromLocalFile(linkName);
lst.append(url);
if (offer) {
if ((!KRun::runService(*offer, lst, 0, autoDelete)) && autoDelete) {
......
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