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