diff options
Diffstat (limited to 'examples/tutorials/addressbook/part4/addressbook.cpp')
-rw-r--r-- | examples/tutorials/addressbook/part4/addressbook.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/tutorials/addressbook/part4/addressbook.cpp b/examples/tutorials/addressbook/part4/addressbook.cpp index 1b7a6c4..55d551f 100644 --- a/examples/tutorials/addressbook/part4/addressbook.cpp +++ b/examples/tutorials/addressbook/part4/addressbook.cpp @@ -134,6 +134,7 @@ void AddressBook::submitContact() if (name == "" || address == "") { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); + return; } //! [submitContact() function part1] if (currentMode == AddingMode) { |