equal
deleted
inserted
replaced
109 void AddressBook::submitContact() |
109 void AddressBook::submitContact() |
110 { |
110 { |
111 QString name = nameLine->text(); |
111 QString name = nameLine->text(); |
112 QString address = addressText->toPlainText(); |
112 QString address = addressText->toPlainText(); |
113 |
113 |
114 if (name == "" || address == "") { |
114 if ( name.isEmpty()|| address.isEmpty()) { |
115 QMessageBox::information(this, tr("Empty Field"), |
115 QMessageBox::information(this, tr("Empty Field"), |
116 tr("Please enter a name and address.")); |
116 tr("Please enter a name and address.")); |
117 return; |
117 return; |
118 } |
118 } |
119 //! [submitContact part1] |
119 //! [submitContact part1] |