summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/addressbook/part6/addressbook.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jkobus@trolltech.com>2009-06-09 08:18:02 (GMT)
committerJarek Kobus <jkobus@trolltech.com>2009-06-09 08:18:02 (GMT)
commit96d6eb1da01287bd9dcd658cbd355f00d34ef4b3 (patch)
tree2fc53d8e3468022af3bd73ab4577b0a4ee604936 /examples/tutorials/addressbook/part6/addressbook.cpp
parent8de2e639825d1351f794f50e2cccd846aba7b8d2 (diff)
parent67b3981e249db9c7c570ff9f77a867ca4c8b0dca (diff)
downloadQt-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.cpp3
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"),