diff options
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | 4 |
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 @@ -301,13 +301,15 @@ void QtUserSearchWindow::addSearchedJIDToList(const Contact::ref& contact) { void QtUserSearchWindow::handleOnSearchedJIDSelected(const Contact::ref& contact) { firstPage_->jid_->setText(P2QSTRING(contact->jid.toString())); } void QtUserSearchWindow::show() { clear(); - setWarning(boost::optional<std::string>()); + if (type_ == AddContact) { + setWarning(boost::optional<std::string>()); + } QWidget::show(); } void QtUserSearchWindow::addSavedServices(const std::vector<JID>& services) { if (type_ == AddContact) { firstPage_->service_->clear(); |