[pim/messagelib] messageviewer/src/viewer: Fix compile when we use flag

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit eaeaf062778f689cef0a40e8bb186d495fea9595 by Laurent Montel.
Committed on 15/08/2026 at 06:08.
Pushed by mlaurent into branch 'master'.

Fix compile when we use flag

M  +3    -1    messageviewer/src/viewer/urlhandlermanager.cpp

https://invent.kde.org/pim/messagelib/-/commit/eaeaf062778f689cef0a40e8bb186d495fea9595

diff --git a/messageviewer/src/viewer/urlhandlermanager.cpp b/messageviewer/src/viewer/urlhandlermanager.cpp
index c1027609a..6b51d1255 100644
--- a/messageviewer/src/viewer/urlhandlermanager.cpp
+++ b/messageviewer/src/viewer/urlhandlermanager.cpp
@@ -746,9 +746,11 @@ bool AttachmentURLHandler::handleDrag(const QUrl &url, ViewerPrivate *window) co
         drag->exec();
         return true;
     } else {
-#endif
         return false;
     }
+#else
+    return false;
+#endif
 }
 
 bool AttachmentURLHandler::handleContextMenuRequest(const QUrl &url, const QPoint &p, ViewerPrivate *w) const
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.