From b2a8327696c286b090abe2bbb27b6449798ed3b8 Mon Sep 17 00:00:00 2001 From: Douglas Date: Tue, 27 Dec 2022 14:27:11 -0300 Subject: [PATCH] Fix text cursor in open channel dialog (#4263) * Fix text cursor not blinking in open channel dialog * Update CHANGELOG.md Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/widgets/dialogs/SelectChannelDialog.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab012294..d88ae649b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Bugfix: Fixed Reply window missing selection clear behaviour between chat and input box. (#4218) - Bugfix: Fixed crash that could occur when changing Tab layout and utilizing multiple windows. (#4248) - Bugfix: Fixed text sometimes not pasting properly when image uploader was disabled. (#4246) +- Bugfix: Fixed text cursor(caret) not showing in open channel dialog. (#4196) - Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256) - Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198) - Dev: Migrated to C++ 20 (#4252, #4257) diff --git a/src/widgets/dialogs/SelectChannelDialog.cpp b/src/widgets/dialogs/SelectChannelDialog.cpp index 0fb754292..054e5f685 100644 --- a/src/widgets/dialogs/SelectChannelDialog.cpp +++ b/src/widgets/dialogs/SelectChannelDialog.cpp @@ -410,9 +410,12 @@ bool SelectChannelDialog::EventFilter::eventFilter(QObject *watched, if (radio) { radio->setChecked(true); + return true; + } + else + { + return false; } - - return true; } else if (event->type() == QEvent::KeyPress) {