summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-10-03 09:11:52 (GMT)
committerSwift Review <review@swift.im>2014-10-06 14:56:47 (GMT)
commitdb6f167adf603c4fa9e0c3ba57b667303a069430 (patch)
tree6f7259ab0e49e2e0745fd9e762f7fd13b79c12d8 /Swift
parente2385da3debfdd372630fa36f70e2440f9c13ac4 (diff)
downloadswift-contrib-db6f167adf603c4fa9e0c3ba57b667303a069430.zip
swift-contrib-db6f167adf603c4fa9e0c3ba57b667303a069430.tar.bz2
Fix detailed name not being shown in profiles.
Test-Information: Tested by running Swift and verifying that the detailed name (prefix, given, middle, family, suffix) is shown. Change-Id: Iacd3f88dc58f3a797cb5854f7ee4800515202c04
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp b/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
index 9140a6d..b29171f 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
+++ b/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
@@ -67,7 +67,9 @@ void QtVCardPhotoAndNameFields::setEditable(bool editable) {
QStringList fullname;
fullname << ui->lineEditPREFIX->text() << ui->lineEditGIVEN->text() << ui->lineEditMIDDLE->text();
fullname << ui->lineEditFAMILY->text() << ui->lineEditSUFFIX->text();
- fullname = fullname.filter(".*\\S.*");
+ for (QStringList::iterator i = fullname.begin(); i != fullname.end(); i++) {
+ *i = i->trimmed();
+ }
ui->labelFULLNAME->setText(fullname.join(" "));
}