From 2e4982e8716f2643e4e18bd3527781b2f613af84 Mon Sep 17 00:00:00 2001 From: Beat Hangartner Date: Wed, 7 Oct 2026 01:50:05 +0200 Subject: [PATCH] Drop a check that cannot trigger in the element editor A dynamic text field is never edited inline in the element editor (it never sets text interaction flags), so the handles never had to hide for it. Co-Authored-By: Claude Fable 5.1 --- sources/editor/elementscene.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index b08892cb0..2d5d035a7 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -1506,7 +1506,7 @@ void ElementScene::managePrimitivesGroups() /** @brief ElementScene::manageTextResizeHandles Show the corner handles that change the width of a text field when it - is the only selected item, and it is not being typed in. + is the only selected item. Called again when the undo stack changes, including from the push of a resize itself: the handles of the same text are then kept, not deleted while they are still emitting. @@ -1520,9 +1520,6 @@ void ElementScene::manageTextResizeHandles(const QList &selecte { text = static_cast(selected_items.first()); } - if (text && (text->textInteractionFlags() & Qt::TextEditable)) - text = nullptr; - if (m_text_resize_handles && m_text_resize_handles->parentItem() == text) { m_text_resize_handles->updateHandlesPos(); return;