From 3f12d5bb3b47b570b31fa9734984b95ee38bebf6 Mon Sep 17 00:00:00 2001 From: Mikulex Date: Sat, 23 Oct 2021 13:22:54 +0200 Subject: [PATCH] Fix "Change channel" popup title (#3273) Co-authored-by: Rasmus Karlsson --- CHANGELOG.md | 1 + src/widgets/splits/Split.cpp | 1 + src/widgets/splits/SplitContainer.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d80c19f5..0eb22a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ - Bugfix: Fixed some channels still not loading in rare cases. (#3219) - Bugfix: Fixed a bug with usernames or emotes completing from the wrong position. (#3229) - Bugfix: Fixed second chatterino icon appearing in the dock when restarting on a crash in macOS. (#3268) +- Bugfix: Fixed the "Change channel" popup showing a wrong window title (#3273) - Bugfix: Fixed built-in Chatterino commands not working in whispers and mentions special channels (#3288) - Bugfix: Fixed `QCharRef with an index pointing outside the valid range of a QString` warning that was emitted on every Tab press. (#3234) - Bugfix: Fixed being unable to disable `First Message` highlights (#3293) diff --git a/src/widgets/splits/Split.cpp b/src/widgets/splits/Split.cpp index e2cd37c7..05d18e08 100644 --- a/src/widgets/splits/Split.cpp +++ b/src/widgets/splits/Split.cpp @@ -466,6 +466,7 @@ void Split::showChangeChannelPopup(const char *dialogTitle, bool empty, dialog->setSelectedChannel(this->getIndirectChannel()); } dialog->setAttribute(Qt::WA_DeleteOnClose); + dialog->setWindowTitle(dialogTitle); dialog->show(); dialog->closed.connect([=] { if (dialog->hasSeletedChannel()) diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index 5e1543c9..78325c32 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -123,7 +123,7 @@ Split *SplitContainer::appendNewSplit(bool openChannelNameDialog) if (openChannelNameDialog) { - split->showChangeChannelPopup("Open channel name", true, [=](bool ok) { + split->showChangeChannelPopup("Open channel", true, [=](bool ok) { if (!ok) { this->deleteSplit(split);