Corrected determination of search popup's title (#3790)

This commit is contained in:
Kasia 2022-06-01 14:41:16 +02:00 committed by GitHub
parent e9e3e5a25a
commit 5de4e9d9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())
{