summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-03-23 09:51:38 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-23 09:52:11 (GMT)
commit8ccdfd958ba1e7afbeb8c5893c12f09046cb8892 (patch)
tree8e033606b686e58b9319e7791e2cd72defa750bb /Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
parent823d3a26d21e38c8ab82a07be71377f0276a0555 (diff)
downloadswift-contrib-8ccdfd958ba1e7afbeb8c5893c12f09046cb8892.zip
swift-contrib-8ccdfd958ba1e7afbeb8c5893c12f09046cb8892.tar.bz2
Don't let trailing whitespace in JIDS interfere with User Search
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.cpp')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index 53eac07..949d65c 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -97,7 +97,7 @@ void QtUserSearchWindow::handleCurrentChanged(int page) {
}
JID QtUserSearchWindow::getServerToSearch() {
- return firstPage_->byRemoteSearch_->isChecked() ? JID(Q2PSTRING(firstPage_->service_->currentText())) : myServer_;
+ return firstPage_->byRemoteSearch_->isChecked() ? JID(Q2PSTRING(firstPage_->service_->currentText().trimmed())) : myServer_;
}
void QtUserSearchWindow::handleAccepted() {
@@ -192,7 +192,7 @@ JID QtUserSearchWindow::getContactJID() const {
}
}
else {
- jid = JID(Q2PSTRING(firstPage_->jid_->text()));
+ jid = JID(Q2PSTRING(firstPage_->jid_->text().trimmed()));
}
return jid;
}