Added Method to remove an Existing Mount Point through "Edit Mount Point" dialog with a remove button
ClosedPublic

Authored by abhijeet2096 on Feb 14 2018, 4:00 PM.

Details

Summary

Hey,

With this patch user will be able to remove an existing Mount point, (Partition -> Edit Mount Point -> Remove) . This will be followed by the same warning message that is displayed when the user saves the changes .

<Edit>
Resolved the comment issue mentioned in review
<Edit>

~abhijeet

Diff Detail

Repository
R17 Partition Manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abhijeet2096 requested review of this revision.Feb 14 2018, 4:00 PM
abhijeet2096 created this revision.
stikonas added inline comments.Feb 15 2018, 2:04 PM
src/gui/editmountpointdialog.h
42

I think the code would be more readable if instead of int we used enum

stikonas added inline comments.Feb 15 2018, 2:07 PM
src/gui/editmountpointdialogwidget.h
79

Is this not used anymore? I think we still need it.

abhijeet2096 edited the summary of this revision. (Show Details)
stikonas added inline comments.Feb 20 2018, 2:03 AM
src/gui/editmountpointdialogwidget.cpp
164

I'll fix this myself but this fstabEntries() is non-const, so your Qt container will detach and perform deep copy. With Qt containers you should iterate over const containers.

stikonas added inline comments.Feb 20 2018, 2:17 AM
src/gui/editmountpointdialogwidget.cpp
164

Hmm, sorry, looks like we can't use const container here precisely because we remove item from the container.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 3 2018, 4:38 PM
This revision was automatically updated to reflect the committed changes.