From 7cf70b9607392d0785a80cd40096e6dff2bd3ad2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Dec 2019 20:13:45 -0600 Subject: [PATCH] Clear Add PC textbox when closing the dialog --- app/gui/main.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/gui/main.qml b/app/gui/main.qml index b8bfd30d..4314ee25 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -413,6 +413,10 @@ ApplicationWindow { editText.forceActiveFocus() } + onClosed: { + editText.clear() + } + onAccepted: { if (editText.text) { ComputerManager.addNewHost(editText.text, false)