summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/addressbook/part5/addressbook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/addressbook/part5/addressbook.cpp')
-rw-r--r--examples/tutorials/addressbook/part5/addressbook.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/tutorials/addressbook/part5/addressbook.cpp b/examples/tutorials/addressbook/part5/addressbook.cpp
index 80c18c3..1b3f451 100644
--- a/examples/tutorials/addressbook/part5/addressbook.cpp
+++ b/examples/tutorials/addressbook/part5/addressbook.cpp
@@ -141,6 +141,7 @@ void AddressBook::submitContact()
if (name == "" || address == "") {
QMessageBox::information(this, tr("Empty Field"),
tr("Please enter a name and address."));
+ return;
}
if (currentMode == AddingMode) {