| Summary: | Activating transform tool with multiple layers selected deselects layers | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Lynx3d <lynx.mw+kde> |
| Component: | Tools/Transform | Assignee: | Dmitry Kazakov <dimula73> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dimula73, griffinvalley, penguinflyer2222 |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 5.3.0-beta3 | ||
| Target Milestone: | --- | ||
| Platform: | Appimage | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/2d1eb218a90dfd4e3075f89fd89eb57490be5a22 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Lynx3d
2026-03-15 02:07:44 UTC
I cannot reproduce this here on a nightly appimage on Kubuntu. How are you activating the transform tool? Just by clicking the toolbox? I think I found the reason you can't reproduce, if selecting a range with Shift+click the issue does not occur, but if you select multiple layers with Ctrl+click, it happens. I don't have the slightest clue why the selection process would matter, but it does. I wonder if it has to do with this commit? https://invent.kde.org/graphics/krita/-/commit/8c0e77b4f3a0be3d5761875b39e5689a6d10a890 Whether the tool is activated by shortcut or click in the toolbox does not make a diffrence for me... ๐๐งน Thanks for your comment! Automatically switching the status to REPORTED so the team can perform further triage. In the future you may also do this yourself when providing needed information. Confirmed, Shift-clicking or using the checkbox is fine but Ctrl-clicking the layers causes this issue, and reverting 8c0e77b4 seems to fix it. Okay, the problem is that when selecting the layers with "Ctrl" shortcut, `currentIndex()` of the view is set on the "last clicked" item, not on the "active" one. Hence, after the next user action, e.g. paint operation or the transform tool activation, the `currentIndex()` is switched, resetting the entire selection. A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2814 Git commit f108829b486916bb4254e4e2da96dae6ff9df1f9 by Dmitry Kazakov, on behalf of Luna Lovecraft. Committed on 11/06/2026 at 10:37. Pushed by dkazakov into branch 'master'. Fix layers getting deselected when starting transform setExclusiveActiveItem in NodeView didn't properly change the current index of the QTreeView M +2 -0 plugins/dockers/layerdocker/NodeView.cpp https://invent.kde.org/graphics/krita/-/commit/f108829b486916bb4254e4e2da96dae6ff9df1f9 Git commit 2d1eb218a90dfd4e3075f89fd89eb57490be5a22 by Dmitry Kazakov, on behalf of Luna Lovecraft. Committed on 11/06/2026 at 10:37. Pushed by dkazakov into branch 'krita/6.0'. Fix layers getting deselected when starting transform setExclusiveActiveItem in NodeView didn't properly change the current index of the QTreeView M +2 -0 plugins/dockers/layerdocker/NodeView.cpp https://invent.kde.org/graphics/krita/-/commit/2d1eb218a90dfd4e3075f89fd89eb57490be5a22 |