This commit is contained in:
2025-02-25 16:21:09 +01:00
parent fdaae34678
commit a68ae311bf
2 changed files with 2 additions and 4 deletions

View File

@@ -23,8 +23,6 @@ GridLayout
editable: true editable: true
Layout.fillWidth: true Layout.fillWidth: true
Layout.columnSpan: 3 Layout.columnSpan: 3
onEditTextChanged: checkFields()
onCurrentTextChanged: checkFields()
} }
//// New grid row //// New grid row
@@ -234,8 +232,7 @@ GridLayout
function checkObjectField() function checkObjectField()
{ {
return ((business.editText.trim() || business.currentText.trim()) && return (street.text.trim() && houseno.text.trim() &&
street.text.trim() && houseno.text.trim() &&
(postcode.editText.trim() || postcode.currentText.trim()) && (postcode.editText.trim() || postcode.currentText.trim()) &&
(city.editText.trim() || city.currentText.trim()) && (city.editText.trim() || city.currentText.trim()) &&
cleansing.text.trim()) cleansing.text.trim())

View File

@@ -21,6 +21,7 @@ class EmployeeModel(QAbstractTableModel):
self.__employee_dao.newEmployeeAdded.connect(self.__refreshView) self.__employee_dao.newEmployeeAdded.connect(self.__refreshView)
self.__conf = ConfigLoader().getConfig() self.__conf = ConfigLoader().getConfig()
self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY'] self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY']
print(self.__key)
self.__getData() self.__getData()
@Slot(dict, bool) @Slot(dict, bool)