diff options
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.cpp')
| -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 | |||
| @@ -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 | ||
| 305 | void QtUserSearchWindow::show() { | 305 | void 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 | ||
| 311 | void QtUserSearchWindow::addSavedServices(const std::vector<JID>& services) { | 313 | void QtUserSearchWindow::addSavedServices(const std::vector<JID>& services) { |
| 312 | if (type_ == AddContact) { | 314 | if (type_ == AddContact) { |
Swift