- fix: When selection is availalbe, Ctrl+Click shouldn't jump to declaration/definition.

This commit is contained in:
Roy Qu 2023-06-07 20:41:35 +08:00
parent e2f25d063f
commit 36cb8b7867
4 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Red Panda C++ Version 2.23
- fix: When selection is availalbe, Ctrl+Click shouldn't jump to declaration/definition.
Red Panda C++ Version 2.22
- fix: Crash at startup when current problem in the problem set is connected with source file.

View File

@ -8,7 +8,7 @@ isEmpty(APP_NAME) {
}
isEmpty(APP_VERSION) {
APP_VERSION = 2.22
APP_VERSION = 2.23
}
contains(QMAKE_HOST.arch, x86_64):{

View File

@ -1296,7 +1296,7 @@ void Editor::mouseReleaseEvent(QMouseEvent *event)
// if ctrl+clicked
if ((event->modifiers() == Qt::ControlModifier)
&& (event->button() == Qt::LeftButton)) {
if (!mCurrentWord.isEmpty()) {
if (!selAvail() && !mCurrentWord.isEmpty()) {
QSynedit::BufferCoord p;
if (mParser && pointToCharLine(event->pos(),p)) {
QString s = document()->getLine(p.line - 1);

View File

@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit
APP_NAME = RedPandaCPP
APP_VERSION = 2.22
APP_VERSION = 2.23
# Add the dependencies so that the RedPandaIDE project can add the depended programs
# into the main app bundle