Bug 470126

Summary: "Open with" menu has off-by one error
Product: [Applications] gwenview Reporter: Frank Steinmetzger <dev-kde>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns
Priority: NOR    
Version: 23.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Frank Steinmetzger 2023-05-22 13:13:19 UTC
STEPS TO REPRODUCE
1. View an image in Gwenview
2. Open the “Open with” menu, it doesn’t matter whether from the main or the context menu
3. Select an item from the menu.

OBSERVED RESULT
The program from the menu item above the selected one is launched. For the first item, Gwenview is launched.
In my case, the menu contains (in that order) Krita, Showfoto, Okular, Gimp. And the items launch Gwenview, Krita, Showfoto and Okular, respectively.

The very last menu item which opens the dialog to start a different application works as expected.

EXPECTED RESULT
The correct program should be started.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.2-arch1-1-surface (64-bit)
Graphics Platform: X11
Comment 1 Patrick Silva 2023-05-23 00:28:29 UTC

*** This bug has been marked as a duplicate of bug 469824 ***