Clear Add PC textbox when closing the dialog
This commit is contained in:
parent
add4b582b5
commit
7cf70b9607
1 changed files with 4 additions and 0 deletions
|
|
@ -413,6 +413,10 @@ ApplicationWindow {
|
||||||
editText.forceActiveFocus()
|
editText.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClosed: {
|
||||||
|
editText.clear()
|
||||||
|
}
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (editText.text) {
|
if (editText.text) {
|
||||||
ComputerManager.addNewHost(editText.text, false)
|
ComputerManager.addNewHost(editText.text, false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue