1. Activate reference image tool 2. Copy an image from Chrome 3. Paste it into Krita using Ctrl+V 4. The "Multiple Paste Sources Detected" dialog pops up: 4a. If you choose any options to paste the image, it gets pasted as a paint later. 4b. If you choose cancel or close the dialog, the image gets pasted as a reference image. If you right click on the canvas to invoke the "Reference Image Actions" menu and choose "Paste". the reference image is simply pasted without any dialogs. Same for the Paste button in the tool options. (Nightly f665ca6c0a)
Confirming on commit eeec8af100 with Vivaldi 5.1.2567.57 (Stable channel) (64 bits) .
CC'ing Dmitry because this arises from https://invent.kde.org/graphics/krita/-/commit/d57f22c09f6797938f34c9048ee97ad2d25bc8e6. In short, when KisClipboard returns a void image, as chosen in the colour profile/multiple source dialogs, the paste factory retries the action invoking the associated handler from the currently selected tool. This doesn't look correct, but seems necessary to handle Inkscape SVG shapes. Dmitry, can you have a look at this?
Marking as WAITINGFORINFO till we hear from Dmitry.
Git commit 41c8abcd6d3ee4eab492c0f10d0a0b38a5158c30 by L. E. Segovia. Committed on 28/04/2022 at 14:06. Pushed by lsegovia into branch 'master'. Ensure the main paste handler is executed only when there's no tool handler available M +9 -3 libs/ui/actions/KisPasteActionFactories.cpp https://invent.kde.org/graphics/krita/commit/41c8abcd6d3ee4eab492c0f10d0a0b38a5158c30