check if the mount point the partition has is non-empty before using it in the
dialog. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127371
This commit is contained in:
parent
96964cc52d
commit
bff6424cf6
|
@ -98,7 +98,9 @@ void PartPropsDialog::setupDialog()
|
|||
|
||||
dialogWidget().partResizerWidget().init(device(), partition(), partition().firstSector(), partition().lastSector(), true, false);
|
||||
|
||||
const QString mp = partition().mountPoints().size() == 0 ? i18nc("@item mountpoint", "(none found)") : partition().mountPoints().join(", ");
|
||||
const QString mp = (partition().mountPoints().size() == 0 || partition().mountPoints()[0].length() == 0)
|
||||
? i18nc("@item mountpoint", "(none found)")
|
||||
: partition().mountPoints().join(", ");
|
||||
dialogWidget().mountPoint().setText(mp);
|
||||
|
||||
dialogWidget().role().setText(partition().roles().toString());
|
||||
|
|
Loading…
Reference in New Issue