Fix an infinite loop in remove mount point function.
This commit is contained in:
parent
0b77294e3d
commit
89dcf7855c
|
@ -174,7 +174,7 @@ void EditMountPointDialogWidget::buttonSelectClicked(bool)
|
|||
|
||||
void EditMountPointDialogWidget::removeMountPoint()
|
||||
{
|
||||
for (auto it = fstabEntries().begin(); it != fstabEntries().end(); ) {
|
||||
for (auto it = fstabEntries().begin(); it != fstabEntries().end(); ++it) {
|
||||
if (editPath().count() <= 1 && (
|
||||
(it->fsSpec().contains(partition().deviceNode()) && !partition().deviceNode().isEmpty() ) ||
|
||||
(it->fsSpec().contains(partition().fileSystem().uuid()) && !partition().fileSystem().uuid().isEmpty() ) ||
|
||||
|
|
Loading…
Reference in New Issue