diff --git a/sources/backend/linbobackend.cpp b/sources/backend/linbobackend.cpp index e9e32bb..16a519a 100644 --- a/sources/backend/linbobackend.cpp +++ b/sources/backend/linbobackend.cpp @@ -370,7 +370,7 @@ void LinboBackend::readFromStdout() { QString stdOut = this->asynchronosProcess->readAllStandardOutput(); QStringList lines = stdOut.split("\n"); for(QString line : lines) { - this->logger->log(line, LinboLogType::StdOut); + this->logger->log(line.simplified(), LinboLogType::StdOut); } } @@ -378,7 +378,7 @@ void LinboBackend::readFromStderr() { QString stdOut = this->asynchronosProcess->readAllStandardError(); QStringList lines = stdOut.split("\n"); for(QString line : lines) { - this->logger->log(line, LinboLogType::StdErr); + this->logger->log(line.simplified(), LinboLogType::StdErr); } } diff --git a/sources/linbostartactions.cpp b/sources/linbostartactions.cpp index f8581d8..34c990c 100644 --- a/sources/linbostartactions.cpp +++ b/sources/linbostartactions.cpp @@ -229,10 +229,13 @@ void LinboStartActions::resizeAndPositionAllItems() { this->errorLabelFont.setPixelSize(this->logFont.pixelSize() * 1.5); this->errorLabel->setFont(this->errorLabelFont); - this->errorDetailsLabel->setGeometry((this->width() * 0.3) / 2, this->errorLabel->height(), this->width() * 0.7, this->height() * 0.6); - this->errorDetailsFont.setPixelSize(this->errorLabelFont.pixelSize() / 2); + int errorDetailsFontHeight = this->height() * 0.6; + this->errorDetailsFont.setPixelSize(errorDetailsFontHeight / 12.5); this->errorDetailsLabel->setFont(this->errorDetailsFont); + this->errorDetailsLabel->move((this->width() - this->errorDetailsLabel->width()) / 2, this->errorLabel->height()); + this->errorDetailsLabel->setFixedHeight(errorDetailsFontHeight); + this->resetErrorButton->setGeometry((this->width() - this->cancelButton->width()) / 2, this->height() - this->cancelButton->width() * 1.1, this->cancelButton->width(), this->cancelButton->width()); this->inited = true;