mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
Merge pull request #12697 from misslivirose/feat/disable-add-without-url
Disable Add Button in Model Modal until user has entered text in the model URL
This commit is contained in:
commit
379df87d0c
1 changed files with 9 additions and 0 deletions
|
@ -71,6 +71,14 @@ Rectangle {
|
|||
onAccepted: {
|
||||
newModelDialog.keyboardEnabled = false;
|
||||
}
|
||||
|
||||
onTextChanged : {
|
||||
if (modelURL.text.length === 0){
|
||||
button1.enabled = false;
|
||||
} else {
|
||||
button1.enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
@ -200,6 +208,7 @@ Rectangle {
|
|||
id: button1
|
||||
text: qsTr("Add")
|
||||
z: -1
|
||||
enabled: false
|
||||
onClicked: {
|
||||
newModelDialog.sendToScript({
|
||||
method: "newModelDialogAdd",
|
||||
|
|
Loading…
Reference in a new issue