equal
deleted
inserted
replaced
78 if (!root->childAt(3)->contentWidgetData("text").toString().isEmpty()) |
78 if (!root->childAt(3)->contentWidgetData("text").toString().isEmpty()) |
79 mCompany.setAssistantName( root->childAt(3)->contentWidgetData("text").toString() ); |
79 mCompany.setAssistantName( root->childAt(3)->contentWidgetData("text").toString() ); |
80 else |
80 else |
81 mCompany.setAssistantName(QString()); |
81 mCompany.setAssistantName(QString()); |
82 |
82 |
83 if ( !mCompany.isEmpty() ) { |
83 mContact->saveDetail( &mCompany ); |
84 mContact->saveDetail( &mCompany ); |
84 |
|
85 if ( mCompany.name().isEmpty() && |
|
86 mCompany.title().isEmpty() && |
|
87 mCompany.department().isEmpty() && |
|
88 mCompany.assistantName().isEmpty() ) |
|
89 { |
|
90 mContact->removeDetail( &mCompany ); |
85 } |
91 } |
86 } |
92 } |
87 |
93 |
88 // End of File |
94 // End of File |