Bug 464966 - Pressing Escape in Trash clears the view
Summary: Pressing Escape in Trash clears the view
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Trash (show other bugs)
Version: 7.9.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 00:59 UTC by Frank Steinmetzger
Modified: 2023-01-29 06:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 7.10.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2023-01-29 00:59:55 UTC
STEPS TO REPRODUCE
1. I have an image in the trash view.
2. I wanted to clear the selection of the image, so I pressed the Escape key.

OBSERVED RESULT
The view is completely emptied, but there now appears a vertical scrollbar as if there were many items. When I open another album and then go back to Trash, the image is shown again.

EXPECTED RESULT
Nothing like this should happen when simply pressing Escape.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Comment 1 Frank Steinmetzger 2023-01-29 01:11:29 UTC
Addendum: after some more clicking around I come to the conclusion that I actually found two separate bugs. One is that pressing Escape empties the Trash view.

The other one is about the scrollbar:

when I open an empty album, the vertical scrollbar retains its status from the last viewed non-empty album. Meaning:
1. I go to an album with so many images, that there would be a scrollbar grip of—for example—50 % height (meaning: two pages worth of scrolling).
2. I go to an empty album. The scrollbar remains visible with 50 % height.
3. I go to the empty trash, all the action buttons at the bottom are disabled (as they should, because Trash is empty and nothing is selected) and the scrollbar disappears.
4. I go back to the empty album, the scrollbar reappears with 50 % height.
5. As soon as the view is resized, either by moving a separator or by hiding/showing a sidebar, the scrollbar also disappears.

So when I press Escape in the Trash view which empties the view, this emptying triggers the same behaviour as in Step 4.
Comment 2 Maik Qualmann 2023-01-29 06:54:28 UTC
Git commit 6ab745a426ebdcc182ca8bbb2f77cf13c155c068 by Maik Qualmann.
Committed on 29/01/2023 at 06:53.
Pushed by mqualmann into branch 'qt5-maintenance'.

ignore escape key in trash view too
FIXED-IN: 7.10.0

M  +2    -1    NEWS
M  +1    -0    core/app/views/stack/itemiconview_views.cpp

https://invent.kde.org/graphics/digikam/commit/6ab745a426ebdcc182ca8bbb2f77cf13c155c068