diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-08-17 05:30:30 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2010-08-17 05:30:30 (GMT) |
commit | ae1fde5d436a047c124f8382fdcd71bb1af306e3 (patch) | |
tree | a937de1c678aaeda2f12fac891f49930d244e954 /examples/tutorials/addressbook/part6 | |
parent | 50a53d2f7a7e12cd597dc72a08ad62b79fee4554 (diff) | |
parent | 8afc6773067bb878020c29b3bebfe8662e3fbfdd (diff) | |
download | Qt-ae1fde5d436a047c124f8382fdcd71bb1af306e3.zip Qt-ae1fde5d436a047c124f8382fdcd71bb1af306e3.tar.gz Qt-ae1fde5d436a047c124f8382fdcd71bb1af306e3.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2
Diffstat (limited to 'examples/tutorials/addressbook/part6')
-rw-r--r-- | examples/tutorials/addressbook/part6/addressbook.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorials/addressbook/part6/addressbook.cpp b/examples/tutorials/addressbook/part6/addressbook.cpp index 724971c..a6bb4a5 100644 --- a/examples/tutorials/addressbook/part6/addressbook.cpp +++ b/examples/tutorials/addressbook/part6/addressbook.cpp @@ -144,7 +144,7 @@ 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; |