提交 fb58bcf7 编写于 作者: J jp9000

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.
上级 1c3f87ca
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册