Keep quote activation separate from text selection gestures
This commit is contained in:
1 parent
484d6f2fa4
commit
ec0666ca2a
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user