From a44830c3a9f954c376d21d4526d94c26d19d010c Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 24 Aug 2022 17:00:01 +0200 Subject: Don't show error message on ERR_USER_CANCELED There's no point telling the user what they just did. After https://invent.kde.org/frameworks/kio/-/commit/f192c133eb01bc8448d5ddd97fe20f8e6dbc467d this error has a text associated with it, so it might show up in the UI. --- src/views/dolphinview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index c34600678..a00d485c8 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1367,7 +1367,7 @@ void DolphinView::slotItemCreated(const QUrl& url) void DolphinView::slotJobResult(KJob *job) { - if (job->error()) { + if (job->error() && job->error() != KIO::ERR_USER_CANCELED) { Q_EMIT errorMessage(job->errorString()); } if (!m_selectedUrls.isEmpty()) { -- cgit v1.3