From e140905faf128a6edd22bfd17a55000565a421de Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 21 Aug 2019 02:16:33 +0200 Subject: [PATCH] ? --- src/messages/MessageElement.cpp | 2 -- src/widgets/dialogs/LogsPopup.cpp | 11 ++--------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/messages/MessageElement.cpp b/src/messages/MessageElement.cpp index 31bfe816d..907bcc54a 100644 --- a/src/messages/MessageElement.cpp +++ b/src/messages/MessageElement.cpp @@ -197,8 +197,6 @@ TextElement::TextElement(const QString &text, MessageElementFlags flags, , color_(color) , style_(style) { - assert(text != "authentication"); - for (const auto &word : text.split(' ')) { this->words_.push_back({word, -1}); diff --git a/src/widgets/dialogs/LogsPopup.cpp b/src/widgets/dialogs/LogsPopup.cpp index f0417938c..7c840468d 100644 --- a/src/widgets/dialogs/LogsPopup.cpp +++ b/src/widgets/dialogs/LogsPopup.cpp @@ -151,15 +151,8 @@ void LogsPopup::getOverrustleLogs() box->setAttribute(Qt::WA_DeleteOnClose); box->show(); box->raise(); - - static QSet closeButtons{ - QMessageBox::Ok, - QMessageBox::Close, - }; - if (closeButtons.contains(box->exec())) - { - this->close(); - } + this->close(); + box->exec(); return true; })