Commit 7ad70688 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent e1cbdc9c
Pipeline #28515 failed with stage
in 118 minutes and 18 seconds
......@@ -58,8 +58,7 @@ void ContactDisplayMessageMemento::slotSearchJobFinished(KJob *job)
const KContacts::Addressee addressee = searchJob->contacts().at(0);
processAddress(addressee);
searchPhoto(searchJob->contacts());
if (!mPhoto.isEmpty()) {
if (!searchPhoto(searchJob->contacts())) {
//We have a data raw => we can update message
if (mPhoto.isIntern()) {
Q_EMIT update(MimeTreeParser::Delayed);
......
......@@ -2334,7 +2334,9 @@ void ViewerPrivate::slotDelayPrintPreview()
connect(dialog, &QPrintPreviewDialog::paintRequested, this, [=](QPrinter *printing) {
QApplication::setOverrideCursor(Qt::WaitCursor);
mViewer->execPrintPreviewPage(printing, 10000); // 10 seconds
if (!mViewer->execPrintPreviewPage(printing, 10000)) { // 10 seconds
qCWarning(MESSAGEVIEWER_LOG) << " Impossible to generate preview";
}
QApplication::restoreOverrideCursor();
});
......@@ -3154,7 +3156,7 @@ DKIMViewerMenu *ViewerPrivate::dkimViewerMenu()
connect(mDkimViewerMenu, &DKIMViewerMenu::recheckSignature, this, [this]() {
MessageViewer::DKIMManager::self()->checkDKim(mMessageItem);
});
connect(mDkimViewerMenu, &DKIMViewerMenu::updateDkimKey, this, [this]() {
connect(mDkimViewerMenu, &DKIMViewerMenu::updateDkimKey, this, []() {
qWarning() <<" Unimplemented yet updateDkimKey";
});
connect(mDkimViewerMenu, &DKIMViewerMenu::showDkimRules, this, [this]() {
......
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