diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2009-06-09 08:18:02 (GMT) |
---|---|---|
committer | Jarek Kobus <jkobus@trolltech.com> | 2009-06-09 08:18:02 (GMT) |
commit | 96d6eb1da01287bd9dcd658cbd355f00d34ef4b3 (patch) | |
tree | 2fc53d8e3468022af3bd73ab4577b0a4ee604936 /examples/tutorials/addressbook/part6/addressbook.cpp | |
parent | 8de2e639825d1351f794f50e2cccd846aba7b8d2 (diff) | |
parent | 67b3981e249db9c7c570ff9f77a867ca4c8b0dca (diff) | |
download | Qt-96d6eb1da01287bd9dcd658cbd355f00d34ef4b3.zip Qt-96d6eb1da01287bd9dcd658cbd355f00d34ef4b3.tar.gz Qt-96d6eb1da01287bd9dcd658cbd355f00d34ef4b3.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'examples/tutorials/addressbook/part6/addressbook.cpp')
-rw-r--r-- | examples/tutorials/addressbook/part6/addressbook.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/tutorials/addressbook/part6/addressbook.cpp b/examples/tutorials/addressbook/part6/addressbook.cpp index b7cd446..5f31c99 100644 --- a/examples/tutorials/addressbook/part6/addressbook.cpp +++ b/examples/tutorials/addressbook/part6/addressbook.cpp @@ -148,7 +148,6 @@ void AddressBook::submitContact() if (name == "" || address == "") { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); - return; } if (currentMode == AddingMode) { @@ -160,7 +159,6 @@ void AddressBook::submitContact() } else { QMessageBox::information(this, tr("Add Unsuccessful"), tr("Sorry, \"%1\" is already in your address book.").arg(name)); - return; } } else if (currentMode == EditingMode) { @@ -173,7 +171,6 @@ void AddressBook::submitContact() } else { QMessageBox::information(this, tr("Edit Unsuccessful"), tr("Sorry, \"%1\" is already in your address book.").arg(name)); - return; } } else if (oldAddress != address) { QMessageBox::information(this, tr("Edit Successful"), |