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:
Volker Lanz 2010-05-16 12:19:04 +00:00
parent 96964cc52d
commit bff6424cf6
1 changed files with 3 additions and 1 deletions

View File

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