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 300307f1 authored by Laurent Montel's avatar Laurent Montel 😁

Don't open kdiff here

parent 250e9e2d
......@@ -72,23 +72,8 @@ void showDiff(const QString &expected, const QString &converted)
return;
}
bool showDiff = true;
if (showDiff) {
QTemporaryFile expectedFile(QStringLiteral("expectedFile"));
QTemporaryFile convertedFile(QStringLiteral("convertedFile"));
if (expectedFile.open() && convertedFile.open()) {
expectedFile.write(expected.toLatin1());
convertedFile.write(converted.toLatin1());
expectedFile.close();
convertedFile.close();
QProcess::execute(QStringLiteral("kdiff3"), QStringList() << expectedFile.fileName() << convertedFile.fileName());
} else {
qWarning() << "files are not open";
}
} else {
qDebug() << "EXPECTED: " << expected;
qDebug() << "CONVERTED: " << converted;
}
qDebug() << "EXPECTED: " << expected;
qDebug() << "CONVERTED: " << converted;
}
KMime::Message::Ptr readMimeFile(const QString &fileName, bool &ok)
......
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