Bug 427370

Summary: Selecting layer content switches layer
Product: [Applications] krita Reporter: Squeaky Pancakes <squeakypancakes>
Component: Layer StackAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: tamtamy.tymona
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Squeaky Pancakes 2020-10-06 02:49:41 UTC
SUMMARY
When selecting the content of a different layer the content layer will be selected instead of staying on the current layer. This breaks some workflows by having the user have to change layers afterwards.

STEPS TO REPRODUCE
1. create image
2. draw on one layer
3. create a new layer
4. ctrl click the image preview of the first layer

OBSERVED RESULT
Opaque pixels are selected as expected but the layer that they are on is now also selected.

EXPECTED RESULT
Selected layer shouldn't change because the content of a different layer is being selected and not the layer itself.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Tiar 2021-01-11 16:21:28 UTC
Right-click to change properties or color of the layer also changes the currently selected layer.

I'm not sure if it is a bug or a wishlist item, though.
Comment 2 Halla Rempt 2021-12-16 10:34:13 UTC
Git commit bc59d1874e56207e54096871da8376e8a26569ce by Halla Rempt, on behalf of Deif Lou.
Committed on 16/12/2021 at 10:33.
Pushed by rempt into branch 'master'.

Change behavior of clicking layer thumbnail with modifier to not activate the layer
Related: bug 447030

M  +2    -1    plugins/dockers/layerdocker/NodeDelegate.cpp

https://invent.kde.org/graphics/krita/commit/bc59d1874e56207e54096871da8376e8a26569ce
Comment 3 Halla Rempt 2021-12-16 10:37:46 UTC
Git commit 914f4a0b979663487e2a319b9640c1da61da2045 by Halla Rempt, on behalf of Deif Lou.
Committed on 16/12/2021 at 10:34.
Pushed by rempt into branch 'krita/5.0'.

Change behavior of clicking layer thumbnail with modifier to not activate the layer
Related: bug 447030
(cherry picked from commit bc59d1874e56207e54096871da8376e8a26569ce)

M  +2    -1    plugins/dockers/layerdocker/NodeDelegate.cpp

https://invent.kde.org/graphics/krita/commit/914f4a0b979663487e2a319b9640c1da61da2045