https://bugs.kde.org/show_bug.cgi?id=506621

--- Comment #11 from Méven <[email protected]> ---
Git commit 8978358ffda392ee0b92fb6a281dd321b0d617d2 by Méven Car, on behalf of
Felix Desyatirikov.
Committed on 13/11/2026 at 16:20.
Pushed by meven into branch 'master'.

paste: Emit ERR_USER_CANCELED when closing the data format prompt

cf3f81f04 made closing the filename prompt cancel the paste job instead of
failing it with `ERR_NO_CONTENT`, but only for clipboard data with a single
format. Data with several formats goes through `chooseFormatAndUrl()`, which
shows the same dialog with a "Data format" combo box. Closing it still returned
`ERR_NO_CONTENT` with an empty error text.

Images copied from Spectacle offer many formats (`image/png` plus everything
`QImageWriter` supports), so pressing Cancel or Esc after Ctrl+V on the desktop
still shows "An unknown error occurred while executing a job: 160".

An empty destination URL from `chooseFormatAndUrl()` now means the user backed
out: the dialog was closed, the "File Already Exists" dialog was cancelled, or
the user was told the clipboard changed. That is `ERR_USER_CANCELED`.
`ERR_NO_CONTENT` is kept for empty data.
Related: bug 493075

M  +38   -0    autotests/pastetest.cpp
M  +2    -0    autotests/pastetest.h
M  +4    -1    src/widgets/paste.cpp

https://invent.kde.org/frameworks/kio/-/commit/8978358ffda392ee0b92fb6a281dd321b0d617d2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to