Fix an infinite loop in remove mount point function.

This commit is contained in:
Andrius Štikonas 2020-09-14 00:42:35 +01:00
parent 0b77294e3d
commit 89dcf7855c
1 changed files with 1 additions and 1 deletions

View File

@ -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() ) ||