Bug 408147

Summary: From LightTable, "Open" picture does not open the right one
Product: [Applications] digikam Reporter: Alexandre Belz <alexandre.belz>
Component: LightTable-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: LightTable. Left picture selected.
Editor called by the LightTable.

Description Alexandre Belz 2019-05-31 13:24:45 UTC
Created attachment 120431 [details]
LightTable. Left picture selected.

SUMMARY
IF is select the picture on the left, and do right click, Open, it is NOT the picture opened in the Editor. The right one is opened instead.

STEPS TO REPRODUCE
1. Open 2 pictures in the LightTable, compare them
2. select the picture on the LEFT
3. do right click, Open

OBSERVED RESULT
The picture located on the right in the LightTable is opened.

EXPECTED RESULT
The picture located on the LEFT in the LightTable should have been opened.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Alexandre Belz 2019-05-31 13:25:52 UTC
Created attachment 120432 [details]
Editor called by the LightTable.

We can see it is the right picture that is opened, instead of the LEFT one.
Comment 2 Alexandre Belz 2019-05-31 13:33:38 UTC
Same thing for the picture "Properties" : although I select the LEFT picture, the data displayed in the "Properties" windows ar the ones of the RIGHT picture, while it should follow my selection.
Comment 3 Maik Qualmann 2019-05-31 13:37:35 UTC
Yes, there is something wrong. In fact, it opens the image selected in Album View. I'll watch it tonight

Maik
Comment 4 Maik Qualmann 2019-05-31 13:44:54 UTC
The properties are correct. The properties for the left image are in the left sidebar, for the right image in the right sidebar.

Maik
Comment 5 Maik Qualmann 2019-05-31 17:55:03 UTC
Git commit caff86818650cd38f35fbcc5783e607225c82728 by Maik Qualmann.
Committed on 31/05/2019 at 17:54.
Pushed by mqualmann into branch 'master'.

fix open from light table and remove navigation actions
FIXED-IN: 6.2.0

M  +2    -1    NEWS
M  +81   -30   core/app/items/utils/contextmenuhelper.cpp
M  +3    -1    core/app/items/utils/contextmenuhelper.h
M  +4    -4    core/app/items/utils/itemviewutilities.cpp
M  +1    -1    core/app/views/preview/itempreviewview.cpp

https://invent.kde.org/kde/digikam/commit/caff86818650cd38f35fbcc5783e607225c82728
Comment 6 Alexandre Belz 2019-05-31 18:03:11 UTC
Thank you Maik for the correction.
(And i confirm that the properties and correct indeed)