diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 34ba2256..ce7ce719 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -700,8 +700,19 @@ void MainWindow::readyRead(bool finished = false) { } } } - + if (ui->formLayout->count() == 0) { + ui->verticalLayoutPassword->setSpacing(0); + } else { + ui->verticalLayoutPassword->setSpacing(6); + } output = tokens.join("\n"); + } else { + while(ui->formLayout->count() > 0){ + QLayoutItem *item = ui->formLayout->takeAt(0); + delete item->widget(); + delete item; + } + ui->verticalLayoutPassword->setSpacing(0); } } output.replace(QRegExp("<"), "<"); |