diff -r 5dc02b23752f -r 3e2da88830cd examples/tutorials/addressbook/part3/addressbook.cpp --- a/examples/tutorials/addressbook/part3/addressbook.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/examples/tutorials/addressbook/part3/addressbook.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -125,6 +125,7 @@ if (name == "" || address == "") { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); + return; } if (!contacts.contains(name)) {