Commit 0030ca3a authored by Andrea Scarpino's avatar Andrea Scarpino

Fix regression caused by bda87361

parent 63a8f30b
......@@ -66,7 +66,7 @@ Page {
focus: true
placeholderText: qsTr("Title")
onTextChanged: submit.enabled = (text.length > 0 && (url.text.length > 0 || text.text.length > 0))
onTextChanged: submit.enabled = (text.length > 0 && (url.text.length > 0 || itemText.text.length > 0))
}
TextField {
......@@ -74,7 +74,7 @@ Page {
width: parent.width
placeholderText: qsTr("Url")
onTextChanged: submit.enabled = (title.text.length > 0 && (text.length > 0 || text.text.length > 0))
onTextChanged: submit.enabled = (title.text.length > 0 && (text.length > 0 || itemText.text.length > 0))
}
Label {
......@@ -84,7 +84,7 @@ Page {
}
TextArea {
id: text
id: itemText
width: parent.width
placeholderText: qsTr("Text")
......@@ -98,7 +98,7 @@ Page {
enabled: false
onClicked: {
manager.submit(title.text, url.text, text.text);
manager.submit(title.text, url.text, itemText.text);
submit.enabled = false;
busy.visible = busy.running = true;
msg.visible = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment