From 9b48a737db5237ecdec062a64b65e6a90c1f9cde Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Thu, 10 Sep 2015 11:50:19 +0200 Subject: Reset potential warning when opening 'Add Contact' dialog Test-Information: Tested by entering an existing JID, closing the dialog window and reopening it. Change-Id: I6c24ba319a062d19f2144c70fcc94fe77d36befe diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp index 737196a..013b869 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp @@ -304,6 +304,7 @@ void QtUserSearchWindow::handleOnSearchedJIDSelected(const Contact::ref& contact void QtUserSearchWindow::show() { clear(); + setWarning(boost::optional()); QWidget::show(); } -- cgit v0.10.2-6-g49f6