From 5de4e9d9cc5f4d941aa22ce3a9678ad685c0c488 Mon Sep 17 00:00:00 2001 From: Kasia Date: Wed, 1 Jun 2022 14:41:16 +0200 Subject: [PATCH] Corrected determination of search popup's title (#3790) --- src/widgets/helper/SearchPopup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/helper/SearchPopup.cpp b/src/widgets/helper/SearchPopup.cpp index b5e80e616..b809b0f29 100644 --- a/src/widgets/helper/SearchPopup.cpp +++ b/src/widgets/helper/SearchPopup.cpp @@ -109,17 +109,17 @@ void SearchPopup::updateWindowTitle() { QString historyName; - if (this->channelName_ == "/whispers") + if (this->searchChannels_.size() > 1) { - historyName = "whispers"; + historyName = "multiple channels'"; } else if (this->channelName_ == "/mentions") { historyName = "mentions"; } - else if (this->searchChannels_.size() > 1) + else if (this->channelName_ == "/whispers") { - historyName = "multiple channels'"; + historyName = "whispers"; } else if (this->channelName_.isEmpty()) {