summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.cpp')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index 013b869..bb6fc31 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -302,11 +302,13 @@ void QtUserSearchWindow::handleOnSearchedJIDSelected(const Contact::ref& contact
302 firstPage_->jid_->setText(P2QSTRING(contact->jid.toString())); 302 firstPage_->jid_->setText(P2QSTRING(contact->jid.toString()));
303} 303}
304 304
305void QtUserSearchWindow::show() { 305void QtUserSearchWindow::show() {
306 clear(); 306 clear();
307 setWarning(boost::optional<std::string>()); 307 if (type_ == AddContact) {
308 setWarning(boost::optional<std::string>());
309 }
308 QWidget::show(); 310 QWidget::show();
309} 311}
310 312
311void QtUserSearchWindow::addSavedServices(const std::vector<JID>& services) { 313void QtUserSearchWindow::addSavedServices(const std::vector<JID>& services) {
312 if (type_ == AddContact) { 314 if (type_ == AddContact) {