Keep quote activation separate from text selection gestures

This commit is contained in:
evgeny committed 2026-10-08 00:31:27 +02:00
1 parent 484d6f2fa4
commit ec0666ca2a
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ bool MessageDelegate::editorEvent(QEvent *event, QAbstractItemModel *model,
const auto* view = qobject_cast<const ChatView*>(option.widget);
const bool hadQuotePress = m_quotePress.isValid();
const bool activateQuote = onQuote && m_quotePress == index
&& (mouse->pos() - m_quotePressPosition).manhattanLength() < 5 && (!view || !view->isSelecting());
&& (mouse->pos() - m_quotePressPosition).manhattanLength() < 5 && (!view || !view->hasSelection());
m_quotePress = QPersistentModelIndex();
const bool activatePoll = onPoll && m_pollPress == index && (mouse->pos() - m_pollPressPosition).manhattanLength() < 5
&& (!view || !view->textSelection().active);