Add action 'Open MountMan' to MountMan submenu
ClosedPublic

Authored by martinkostolny on Mar 3 2018, 10:54 AM.

Details

Reviewers
nmel
asensi
yurchor
Group Reviewers
Krusader
Summary

Allow opening MountMan from Tools menu. Also the MountMan code was cleaned up in some places,
removed some unnecessary hacks and fix an issue with multiple
sorry message-boxes when a drive is (un)mounted unsuccessfully multiple times.

FIXED: [ 308351 ] Cannot run MountMan from menu
BUG: 308351

Test Plan
  • mount / unmount a drive from MountMan submenu
  • open MountMan from Tools menu
  • open MountMan from Toolbar

Diff Detail

Repository
R167 Krusader
Branch
mountman-action-fix-arc
Lint
No Linters Available
Unit
No Unit Test Coverage
martinkostolny requested review of this revision.Mar 3 2018, 10:54 AM
martinkostolny created this revision.
nmel added a subscriber: nmel.Mar 6 2018, 5:48 AM

Martin, thanks for taking on the bug and the hacks in MountMan!

I just did the code review. Will test later.

krusader/MountMan/kmountman.cpp
443–448

How about moving actData[0].toInt() out of lambda? Then "Unpacking" will be done in a single place after line 435.

448

Why disconnect is within the lambda? I propose to move it to the body of delayedPerformAction.

463

Thanks for removing the ugly hacks.

Nikita, thanks for code review! I've adjusted the code to respect your proposed changes.

martinkostolny marked 3 inline comments as done.Mar 6 2018, 11:50 PM
nmel accepted this revision.Mar 9 2018, 5:42 AM

Works without an issue. Thanks Martin!

This revision is now accepted and ready to land.Mar 9 2018, 5:42 AM
asensi accepted this revision.Mar 10 2018, 4:03 PM
asensi added a subscriber: asensi.

Thank you, Martin! (and Nikita :-)! For my part, my performed tests (using Kubuntu 17.04) went alright. Other people can do their checks.

yurchor accepted this revision.Mar 10 2018, 4:29 PM
yurchor added a subscriber: yurchor.

All works as expected (KF 5.32, Qt 5.6.2). Of course, needs some documentation tweaking which will be done when this patch is landed. :)

Nikita, Toni, Yuri, big thanks for testing! :)

I'm closing this manually since it was not triggered automatically by pushing.