Add set jump back et al. to specialbookmarks to fix right click bug
ClosedPublic

Authored by rade on Mar 23 2018, 8:09 PM.

Details

Summary

Because set jump back and jump back are not in specialbookmarks right clicking on them just closes the menu. This patch fixes that.

Test Plan

Test right clicking on set jump back and jump back

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.
rade requested review of this revision.Mar 23 2018, 8:09 PM
rade created this revision.
nmel accepted this revision.Mar 24 2018, 5:18 AM
nmel added reviewers: martinkostolny, Krusader.
nmel added a project: Krusader.

This patch should be applied on top of bookmark-quicksearch branch.

right clicking on them just closes the menu

Right click actually executes the action currently. I think this is standard behavior for menus.

This is arguable if these actions should be considered as special bookmarks. On one hand, they are not bookmarks, especially Set Jump Back. On the other hand, right click menu on Trash has Jump Back checkbox, so it's natural to support right click here, and Manage Bookmarks is currently a special bookmark... In addition, I understand that this patch is intended to help with D11624, however D11624 can be implemented cleanly without this one, so let's try to think independently.

Adding other devs to collect opinions. I'm accepting because it seems to be beneficial to have the actions in a special bookmark list.

This revision is now accepted and ready to land.Mar 24 2018, 5:18 AM
rade added a comment.EditedMar 24 2018, 8:20 PM

right clicking on them just closes the menu

Right click actually executes the action currently. I think this is standard behavior for menus.

It didn't use to be standard behaviour for this menu, it used to be that right clicking on them you got the same options as you get when right clicking on trash et al. AFIK it's not consistent with other menus either. The only menu I could find where right clicking doesn't give you a pop up is "Useractions" and there right clicking simply does nothing. I could find no menus where right clicking executes the action, nor would a user expect right clicking to trigger the action.

This is arguable if these actions should be considered as special bookmarks. On one hand, they are not bookmarks, especially Set Jump Back. On the other hand, right click menu on Trash has Jump Back checkbox, so it's natural to support right click here, and Manage Bookmarks is currently a special bookmark...

They used to be special bookmarks before the code for 'set jump back' was changed.

In addition, I understand that this patch is intended to help with D11624

Not really that patch is trivial to implement with or without 'set jump back' in special bookmarks.

nmel accepted this revision.Mar 24 2018, 8:28 PM
In D11623#233190, @rade wrote:

This is arguable if these actions should be considered as special bookmarks. On one hand, they are not bookmarks, especially Set Jump Back. On the other hand, right click menu on Trash has Jump Back checkbox, so it's natural to support right click here, and Manage Bookmarks is currently a special bookmark...

They used to be special bookmarks before the code for 'set jump back' was changed.

Oh, that's right. It appears I've removed the code in f515bfa and we haven't noticed before. Thanks for the fix! I'll apply it to the branch then.

martinkostolny accepted this revision.Mar 25 2018, 1:31 AM

Thanks for the fix!

This revision was automatically updated to reflect the committed changes.