From 39e283169eecb964d7c1d464e8387dba50239bc0 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Wed, 7 Jan 2026 14:03:38 +0500 Subject: [PATCH] fix(CheckComboBox): check that mouse press is inside view rectangle Signed-off-by: Octol1ttle --- launcher/ui/widgets/CheckComboBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/widgets/CheckComboBox.cpp b/launcher/ui/widgets/CheckComboBox.cpp index 961709650..dddf5333e 100644 --- a/launcher/ui/widgets/CheckComboBox.cpp +++ b/launcher/ui/widgets/CheckComboBox.cpp @@ -138,7 +138,7 @@ bool CheckComboBox::eventFilter(QObject* receiver, QEvent* event) } case QEvent::MouseButtonPress: { auto ev = static_cast(event); - m_containerMousePress = ev && view()->indexAt(ev->pos()).isValid(); + m_containerMousePress = ev && view()->indexAt(ev->pos()).isValid() && view()->rect().contains(ev->pos()); break; } case QEvent::Wheel: @@ -203,4 +203,4 @@ void CheckComboBox::paintEvent(QPaintEvent*) painter.drawControl(QStyle::CE_ComboBoxLabel, opt); } -#include "CheckComboBox.moc" \ No newline at end of file +#include "CheckComboBox.moc"