Changeset View
Changeset View
Standalone View
Standalone View
src/gui/editmountpointdialogwidget.cpp
Context not available. | |||||
163 | { | 163 | { | ||
---|---|---|---|---|---|
164 | int i=0; | 164 | int i=0; | ||
165 | for (const auto &e : fstabEntries()) { | 165 | for (const auto &e : fstabEntries()) { | ||
166 | if(e.fsSpec().contains(partition().deviceNode()) || e.fsSpec().contains(partition().fileSystem().uuid()) || | 166 | if((e.fsSpec().contains(partition().deviceNode()) && !partition().deviceNode().isEmpty() ) || (e.fsSpec().contains(partition().fileSystem().uuid()) && !partition().fileSystem().uuid().isEmpty()) || | ||
167 | e.fsSpec().contains(partition().fileSystem().label()) || e.fsSpec().contains(partition().label()) || e.fsSpec().contains(partition().uuid()) ) | 167 | (e.fsSpec().contains(partition().fileSystem().label()) && !partition().fileSystem().label().isEmpty()) || (e.fsSpec().contains(partition().label()) && !partition().label().isEmpty() ) || (e.fsSpec().contains(partition().uuid()) && !partition().uuid().isEmpty() ) ) | ||
168 | { | 168 | { | ||
169 | fstabEntries().removeAt(i); | 169 | fstabEntries().removeAt(i); | ||
170 | partition().setMountPoint(QString()); | 170 | partition().setMountPoint(QString()); | ||
171 | i--; | 171 | i--; | ||
Context not available. |