Fix for context menu "Open with"->"Other..." option opens only first selected file.
ClosedPublic

Authored by abika on Sep 17 2016, 9:06 PM.

Diff Detail

Repository
R167 Krusader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abika updated this revision to Diff 6797.Sep 17 2016, 9:06 PM
abika retitled this revision from to Fix for context menu "Open with"->"Other..." option opens only first selected file..
abika updated this object.
abika edited the test plan for this revision. (Show Details)
abika added a reviewer: Krusader.
Closed by commit R167:639f6c16a281: Fix for context menu "Open with"->"Other..." option opens only first selected… (authored by Alexander Bikadorov <bikaejkb@mailbox.tu-berlin.de>). · Explain WhySep 17 2016, 9:13 PM
This revision was automatically updated to reflect the committed changes.
gengisdave added a subscriber: gengisdave.EditedSep 17 2016, 10:45 PM

You can't pass a QList of urls to every program, not every program likes it so no files are opened at all.

It is the program task to take the urls passed by KIO, but Krusader cannot know it.

We can change ListPanelFunc::displayOpenWithDialog in the same way of KrPopupMenu::performAction case OPEN_ID

The problem is the DesktopExecParser used in ListPanelFunc::runService(). Depending on the application it simply removes all arguments.