diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2010-08-03 14:19:12 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2010-08-03 14:19:12 (GMT) |
commit | 14e17d5fe5f925a768aab9db9401e04bbaca224d (patch) | |
tree | 243a58f3d560fc610808ecefa75acadc67966fab /examples/tutorials/addressbook-fr/part7 | |
parent | 4a0e317156eefb308340668d586ceafd7cf978e6 (diff) | |
download | Qt-14e17d5fe5f925a768aab9db9401e04bbaca224d.zip Qt-14e17d5fe5f925a768aab9db9401e04bbaca224d.tar.gz Qt-14e17d5fe5f925a768aab9db9401e04bbaca224d.tar.bz2 |
Fixed the addressbook tutorial and some spelling mistakes. Fix for QTBUG-7071 and QTBUG-10173
Diffstat (limited to 'examples/tutorials/addressbook-fr/part7')
-rw-r--r-- | examples/tutorials/addressbook-fr/part7/addressbook.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tutorials/addressbook-fr/part7/addressbook.cpp b/examples/tutorials/addressbook-fr/part7/addressbook.cpp index 3ab8702..b0f35a7 100644 --- a/examples/tutorials/addressbook-fr/part7/addressbook.cpp +++ b/examples/tutorials/addressbook-fr/part7/addressbook.cpp @@ -146,9 +146,10 @@ void AddressBook::submitContact() QString name = nameLine->text(); QString address = addressText->toPlainText(); - if (name == "" || address == "") { + if (name.isEmpty() || address.isEmpty()) { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); + return; } if (currentMode == AddingMode) { |