Bug 384853 - Ungrouping images is not working
Summary: Ungrouping images is not working
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemGroup (show other bugs)
Version: 5.7.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-19 14:38 UTC by Anton Lavrov
Modified: 2018-02-22 21:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Lavrov 2017-09-19 14:38:01 UTC
When I group images (select several images -> right click on one of them -> Group -> Group Selected Here), group is created. However when I try to ungroup it (right click on the first group image -> Group -> Ungroup), nothing happens, group still exists after that.

Removing from group (right click -> Group -> Remove From Group) works and can be used as a workaround for dismissing the whole group.
Comment 1 Simon 2017-09-19 15:00:35 UTC
I can't reproduce this problem. Do you use a mysql or sqlite database?
Comment 2 Anton Lavrov 2017-09-19 15:51:29 UTC
I use sqlite.
Comment 3 caulier.gilles 2017-09-19 16:19:37 UTC
It's not reproducible here too, with sqlite.

Can you look with the fresh 5.8.0 AppImage bundle to see if problem is reproducible ?

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Can you try to create a new account and run digiKAm from a fresh collection, add some items, group and ungroup to see if problem is reproducible ?

With original account, do you see any debug trace on the console ?

Gilles Caulier
Comment 4 caulier.gilles 2017-12-01 04:50:38 UTC
Do you see my previous comment ?

Note : pre-release bundles are now available here :

https://files.kde.org/digikam/
Comment 5 Anton Lavrov 2017-12-01 15:04:22 UTC
Sorry for the late reply. It took me a while to run appimage because of some missing libraries.

I've tried both digikam-5.7.0 from my distro repository (gentoo) and digikam-5.8.0-20171113012920-x86-64.appimage under new user account with sqlite and a bunch of test images. Ungrouping works there w/o any issues.

With my normal account and photos 5.7.0 ungrouping generally wasn't working and I used "Remove from Group" as a workaround - however I remember a few times it worked, so the problem is intermittent. When today I've tried to get debug console output for you, it started working like a charm :) When it works, there's no output.

5.8.0. appimage also works just fine now for my normal account.

I guess the ticket can be closed for now. If I have run into this problem again with 5.8.0, I'll collect more details and reopen it.
Comment 6 Maik Qualmann 2018-02-22 21:30:39 UTC
Git commit 0f3f825b7ed0f69ea1e0c17da14eab48f5b28b3d by Maik Qualmann.
Committed on 22/02/2018 at 21:29.
Pushed by mqualmann into branch 'master'.

fix ungroup images if use the context menu from the overlay button
FIXED-IN: 5.9.0

M  +1    -32   app/items/digikamimageview.cpp
M  +5    -0    app/items/digikamimageview.h
M  +41   -0    app/views/digikamview.cpp
M  +5    -0    app/views/digikamview.h

https://commits.kde.org/digikam/0f3f825b7ed0f69ea1e0c17da14eab48f5b28b3d