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/dolphinnewfilemenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dolphinnewfilemenu.cpp') diff --git a/src/dolphinnewfilemenu.cpp b/src/dolphinnewfilemenu.cpp index f83beccda..9b6b53b2e 100644 --- a/src/dolphinnewfilemenu.cpp +++ b/src/dolphinnewfilemenu.cpp @@ -24,7 +24,7 @@ DolphinNewFileMenu::~DolphinNewFileMenu() void DolphinNewFileMenu::slotResult(KJob* job) { - if (job->error()) { + if (job->error() && job->error() != KIO::ERR_USER_CANCELED) { Q_EMIT errorMessage(job->errorString()); } else { KNewFileMenu::slotResult(job); -- cgit v1.3