summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 01:59:29 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 01:59:29 +0200
commit4471c74fc6eedcf4b12b8a56926f9454e0c1c10f (patch)
treeaca8f621b12fa938a76c01428c19cbe2aca87445
parente7983362e6242d6d14b29723cd76db59f5532484 (diff)
downloadacritoxinstaller-4471c74fc6eedcf4b12b8a56926f9454e0c1c10f.zip
acritoxinstaller-4471c74fc6eedcf4b12b8a56926f9454e0c1c10f.tar.gz
ignore devices with empty mountpoints in summary
-rw-r--r--wizard/summary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/wizard/summary.cpp b/wizard/summary.cpp
index b09f2c1..96440eb 100644
--- a/wizard/summary.cpp
+++ b/wizard/summary.cpp
@@ -30,6 +30,7 @@ void wpSummary::initializePage()
QString automount = line.section(":",3,3);
QString title = tr("%1 will be used as %2").arg(device).arg(mountpoint);
QString description;
+ if(!mountpoint.length()) continue;
if(filesystem.length()) description = QString("<li>") + tr("It will be formatted with %1").arg(filesystem) + QString("</li>");
if(automount == "auto") description += QString("<li>") + tr("It will be mounted automatically on boot") + QString("</li>");
listWidget->addItem(new ListItem(title, "<ul>" + description + "</ul>", "drive-harddisk"));