summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/Controllers/Chat/UserSearchController.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/UserSearchController.cpp b/Swift/Controllers/Chat/UserSearchController.cpp
index ece897f..454a110 100644
--- a/Swift/Controllers/Chat/UserSearchController.cpp
+++ b/Swift/Controllers/Chat/UserSearchController.cpp
@@ -208,11 +208,15 @@ void UserSearchController::handleNameSuggestionRequest(const JID &jid) {
208 208
209void UserSearchController::handleJIDEditingFinished(const JID& jid) { 209void UserSearchController::handleJIDEditingFinished(const JID& jid) {
210 if (jid.isValid()) { 210 if (jid.isValid()) {
211 if (rosterController_->getItem(jid)) { 211 if (rosterController_->getItem(jid)) {
212 window_->setWarning(QT_TRANSLATE_NOOP("", "This contact is already on your contact list.")); 212 window_->setWarning(QT_TRANSLATE_NOOP("", "This contact is already on your contact list."));
213 } else { 213 }
214 else if (jid.getNode().empty()) {
215 window_->setWarning(QT_TRANSLATE_NOOP("", "Part of the address you have entered is missing. An address has a structure of 'user@example.com'."));
216 }
217 else {
214 window_->setWarning(boost::optional<std::string>()); 218 window_->setWarning(boost::optional<std::string>());
215 } 219 }
216 } 220 }
217 else { 221 else {
218 window_->setWarning(QT_TRANSLATE_NOOP("", "The address you have entered is invalid.")); 222 window_->setWarning(QT_TRANSLATE_NOOP("", "The address you have entered is invalid."));