[pim/messagelib] /: Fix coding style => {...}

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 66d7561545575a19a16403828bc6b734ac0e222e by Laurent Montel.
Committed on 17/07/2026 at 19:07.
Pushed by mlaurent into branch 'master'.

Fix coding style => {...}

M  +4    -2    messageviewer/src/viewer/webengine/mailwebengineview.cpp
M  +4    -2    webengineviewer/src/webenginepage.cpp

https://invent.kde.org/pim/messagelib/-/commit/66d7561545575a19a16403828bc6b734ac0e222e

diff --git a/messageviewer/src/viewer/webengine/mailwebengineview.cpp b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
index 71782f605..df96201b5 100644
--- a/messageviewer/src/viewer/webengine/mailwebengineview.cpp
+++ b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
@@ -190,8 +190,9 @@ void MailWebEngineView::forwardMousePressEvent(QMouseEvent *event)
 
             d->mStartedDrag = false;
             if (d->mCanStartDrag) {
-                if (d->mStartDragTimer == nullptr)
+                if (d->mStartDragTimer == nullptr) {
                     d->mStartDragTimer = new QElapsedTimer;
+                }
                 d->mStartDragTimer->start();
                 event->accept();
             }
@@ -207,8 +208,9 @@ void MailWebEngineView::forwardMouseMoveEvent(QMouseEvent *event)
             if ((d->mLastClickPosition - event->pos()).manhattanLength() > QApplication::startDragDistance()) {
                 if (URLHandlerManager::instance()->handleDrag(d->mHoveredUrl, d->mViewer)) {
                     if (d->mCanStartDrag && d->mStartDragTimer != nullptr) {
-                        if (d->mStartDragTimer->elapsed() > QApplication::startDragTime())
+                        if (d->mStartDragTimer->elapsed() > QApplication::startDragTime()) {
                             d->mStartedDrag = true;
+                        }
                     }
                     // If the URL handler manager started a drag, don't handle this in the future
                     d->mCanStartDrag = false;
diff --git a/webengineviewer/src/webenginepage.cpp b/webengineviewer/src/webenginepage.cpp
index fae572dba..331b114fe 100644
--- a/webengineviewer/src/webenginepage.cpp
+++ b/webengineviewer/src/webenginepage.cpp
@@ -163,15 +163,17 @@ void WebEnginePage::saveHtml(QWebEngineDownloadRequest *download)
 bool WebEnginePage::acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame)
 {
     const QString sch = url.scheme();
+#if 0
     qDebug() << "type" << type << "isMainFrame" << isMainFrame << "scheme" << sch;
     if (sch != QStringLiteral("data"))
         qDebug() << "url" << url;
-
+#endif
     if (isMainFrame && type == NavigationTypeLinkClicked) {
         // Schemes other than these will have been sent directly
         // to MailWebEnginePage::urlClicked() and handled there.
-        if (sch != QStringLiteral("kmail") && sch != QStringLiteral("data"))
+        if (sch != QStringLiteral("kmail") && sch != QStringLiteral("data")) {
             return false;
+        }
 
         Q_EMIT urlClicked(url);
         return false;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.