diff --git a/summarypage.cpp b/summarypage.cpp
index 9b497ab..dc3c33d 100644
--- a/summarypage.cpp
+++ b/summarypage.cpp
@@ -36,6 +36,7 @@ SummaryPage::SummaryPage(QWidget *parent) :
}
void SummaryPage::initializePage() {
+ ui->summaryTextBox->clear();
QString inputPath = field("inputPath").toString();
ui->summaryTextBox->append(QString("Input path: %1\n").arg(inputPath));
if (QFileInfo(inputPath).isDir())
@@ -59,14 +60,14 @@ void SummaryPage::initializePage() {
int pieceSizeIndex = field("pieceSize").toInt();
int pieceSize;
- if(pieceSizeIndex == 0)
+ if(pieceSizeIndex == 0) {
pieceSize = 0;
- else
- pieceSize = 1024 * (2 << (pieceSizeIndex + 2));
- if (pieceSize == 0)
ui->summaryTextBox->append(QString("Piece size: Auto\n"));
- else
+ }
+ else {
+ pieceSize = 1024 * (2 << (pieceSizeIndex + 2));
ui->summaryTextBox->append(QString("Piece size: %1 KB\n").arg(pieceSize));
+ }
ui->summaryTextBox->append(QString("Include file modification times: %1\n").arg(field("includeFileModTimes").toString()));
ui->summaryTextBox->append(QString("Private torrent: %1\n").arg(field("privateTorrent").toString()));
diff --git a/summarypage.ui b/summarypage.ui
index 1036f59..d382507 100644
--- a/summarypage.ui
+++ b/summarypage.ui
@@ -13,39 +13,29 @@
WizardPage
-
-
-
- 10
- 0
- 141
- 17
-
-
-
-
- 14
- 75
- true
-
-
-
- Summary
-
-
-
-
-
- 10
- 20
- 381
- 221
-
-
-
- true
-
-
+
+ -
+
+
+
+ 14
+ 75
+ true
+
+
+
+ Summary
+
+
+
+ -
+
+
+ true
+
+
+
+