Fixing qml connection to save business with a new contact - some
database modifications
This commit is contained in:
@@ -85,7 +85,18 @@ ColumnLayout
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Component.onCompleted: contact_model.contactIdReady.connect(onContactId)
|
||||
//Component.onCompleted: contact_model.contactIdReady.connect(onContactId)
|
||||
|
||||
Connections
|
||||
{
|
||||
target: contact_model
|
||||
onContactIdReady:
|
||||
{
|
||||
var con_id = arguments[0]
|
||||
business_model.addBusiness(new_business, con_id)
|
||||
appLoader.source = "CustomerTable.qml"
|
||||
}
|
||||
}
|
||||
|
||||
function checkFields()
|
||||
{
|
||||
@@ -101,10 +112,4 @@ ColumnLayout
|
||||
else
|
||||
saveBtn.enabled = true
|
||||
}
|
||||
|
||||
function onContactId(con_id)
|
||||
{
|
||||
business_model.addBusiness(new_business, con_id)// bm
|
||||
appLoader.source = "CustomerTable.qml"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user