From e3d2fd4e2a6cbe761cde627c7a61c20c1dc5be4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Mon, 12 Aug 2024 23:34:23 +0200 Subject: [PATCH] Core: fix double-click on textbox Open and focus 'Text and Font' widget on textbox double-click instead of legacy dialog. --- src/core/canvasmouseevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/canvasmouseevents.cpp b/src/core/canvasmouseevents.cpp index 258df71f2..052f520c1 100644 --- a/src/core/canvasmouseevents.cpp +++ b/src/core/canvasmouseevents.cpp @@ -208,7 +208,7 @@ void Canvas::mouseDoubleClickEvent(const eMouseEvent &e) { mCurrentMode == CanvasMode::pointTransform) && enve_cast(mHoveredBox)) { e.fReleaseMouse(); - static_cast(mHoveredBox.data())->openTextEditor(e.fWidget); + emit openTextEditor(); } else if(mCurrentMode == CanvasMode::boxTransform && enve_cast(mHoveredBox)) { Document::sInstance->setCanvasMode(CanvasMode::pointTransform);