diff options
| author | Kai Uwe Broulik <[email protected]> | 2022-08-24 17:00:01 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2022-08-24 17:00:01 +0200 |
| commit | a44830c3a9f954c376d21d4526d94c26d19d010c (patch) | |
| tree | 2ed10a125ba55a7fe291542f9211f80cd7098520 /src/dolphinnewfilemenu.cpp | |
| parent | 29cd7b8e1f2f21e8ae8aabba71cadb123c668775 (diff) | |
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.
Diffstat (limited to 'src/dolphinnewfilemenu.cpp')
| -rw-r--r-- | src/dolphinnewfilemenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
