From fb58bcf75fe00aab6a4513a76a1727f30d84a64b Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 14 Aug 2018 13:03:07 -0700 Subject: [PATCH] UI: If users renames a source, only revert on Esc Fixes a design flaw where if renaming a source, the source's name would revert if you de-focused (clicked away) from the rename edit widget. Instead, the functionality for revert should really only just be when the user presses the Escape key. --- UI/source-tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 20dfd5bb3..ff76b35c2 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -321,7 +321,7 @@ bool SourceTreeItem::eventFilter(QObject *object, QEvent *event) } else if (event->type() == QEvent::FocusOut) { QMetaObject::invokeMethod(this, "ExitEditMode", Qt::QueuedConnection, - Q_ARG(bool, false)); + Q_ARG(bool, true)); return true; }