From 61f7b2e4992814fcbbf32db732af8cd8a69cce21 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Sun, 31 Oct 2021 19:17:22 +0800 Subject: [PATCH] effects/overview: Save desktop name when the text field loses focus Replace onAccepted with onEditingFinished. --- src/effects/overview/qml/DesktopBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index c19b568e61..a55bd37d07 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -203,7 +203,7 @@ Item { visible: label.state == "editing" color: PlasmaCore.ColorScope.textColor text: delegate.desktop.name - onAccepted: { + onEditingFinished: { delegate.desktop.name = text; label.stopEditing(); }