Bug 470416

Summary: "Open with" opens image with application which is one item above the one clicked in context menu
Product: [Applications] gwenview Reporter: postix <postix>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns
Priority: NOR    
Version: 23.04.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot

Description postix 2023-05-29 13:44:53 UTC
Created attachment 159322 [details]
Screenshot

SUMMARY

File -> "Open with" opens image with application which is one item above the one clicked in context menu

STEPS TO REPRODUCE
1. Open any image in gwenview
2. Click on File
3. Hover over "Open with"
4. Choose any application

OBSERVED RESULT

Journalctl reports on mouse hover over "Open with":
```
gwenview[7312]: qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x563b60b99ed0) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x563c0e9188c0) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
```

When clicking on any application from the context menu it reports
```
gwenview[7312]: QString::arg: 2 argument(s) missing in org.kde.gwenview
```

When you click on the very first application in the list, the image opens in another instance of Gwenview.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230525
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.2-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 Patrick Silva 2023-05-29 14:19:27 UTC

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