diff options
Diffstat (limited to 'examples/tutorials/addressbook/part7/addressbook.cpp')
-rw-r--r-- | examples/tutorials/addressbook/part7/addressbook.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/tutorials/addressbook/part7/addressbook.cpp b/examples/tutorials/addressbook/part7/addressbook.cpp index 3ab8702..bf00298 100644 --- a/examples/tutorials/addressbook/part7/addressbook.cpp +++ b/examples/tutorials/addressbook/part7/addressbook.cpp @@ -149,6 +149,7 @@ void AddressBook::submitContact() if (name == "" || address == "") { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); + return; } if (currentMode == AddingMode) { |