[frameworks/kio] src/filewidgets: KUrlNavigatorButton: Stat with no-auth-prompt

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d9d47b34a347f5d2d3588f1f1748ac30c8fc6044 by Kai Uwe Broulik.
Committed on 16/07/2026 at 17:41.
Pushed by broulik into branch 'master'.

KUrlNavigatorButton: Stat with no-auth-prompt

Otherwise this might spawn a credential prompt for every
segment in the path.

M  +1    -0    src/filewidgets/kurlnavigatorbutton.cpp

https://invent.kde.org/frameworks/kio/-/commit/d9d47b34a347f5d2d3588f1f1748ac30c8fc6044

diff --git a/src/filewidgets/kurlnavigatorbutton.cpp b/src/filewidgets/kurlnavigatorbutton.cpp
index bed4af179c..c7ef5ca671 100644
--- a/src/filewidgets/kurlnavigatorbutton.cpp
+++ b/src/filewidgets/kurlnavigatorbutton.cpp
@@ -81,6 +81,7 @@ void KUrlNavigatorButton::setUrl(const QUrl &url)
     if (startTextResolving) {
         m_pendingTextChange = true;
         KIO::StatJob *job = KIO::stat(m_url, KIO::HideProgressInfo);
+        job->addMetaData(QStringLiteral("no-auth-prompt"), QStringLiteral("true"));
         connect(job, &KJob::result, this, &KUrlNavigatorButton::statFinished);
         Q_EMIT startedTextResolving();
     } else {
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.