From 2114206e761c6674b1b30da26dc56fd0a0ccddbe Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 11 May 2023 21:59:57 +0800 Subject: [PATCH] - fix: Double-clicking on touchpad can't select current word. --- NEWS.md | 1 + libs/qsynedit/qsynedit/qsynedit.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index 5abd5aab..b7b9822d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ Red Panda C++ Version 2.22 - fix: Crash at startup when current problem in the problem set is connected with source file. + - fix: Double-clicking on touchpad can't select current word. Red Panda C++ Version 2.21 diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index bde4a5b6..108e977e 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -1748,6 +1748,8 @@ void QSynEdit::doMouseScroll(bool isDragging) mDropped=false; return; } + if (mStateFlags.testFlag(StateFlag::sfDblClicked)) + return; if (!hasFocus()) return; Qt::MouseButtons buttons = qApp->mouseButtons();