summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-03-04 12:41:14 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-03-04 12:41:14 (GMT)
commit0070f96a4ab8770f45a09f5285f427357b955fe2 (patch)
treec339c7d02ec7497ab1ead756188061a5397fde4c /Swift/QtUI
parent37bfeaf6f2e0145731c32f79291ff3d48ae0e1b1 (diff)
downloadswift-0070f96a4ab8770f45a09f5285f427357b955fe2.zip
swift-0070f96a4ab8770f45a09f5285f427357b955fe2.tar.bz2
Reset the field values between searches for users.
Resolves: #771
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index 2c1de3d..5f84900 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -209,6 +209,9 @@ void QtUserSearchWindow::clearForm() {
QWidget* legacySearchWidgets[8] = {fieldsPage_->nickInputLabel_, fieldsPage_->nickInput_, fieldsPage_->firstInputLabel_, fieldsPage_->firstInput_, fieldsPage_->lastInputLabel_, fieldsPage_->lastInput_, fieldsPage_->emailInputLabel_, fieldsPage_->emailInput_};
for (int i = 0; i < 8; i++) {
legacySearchWidgets[i]->hide();
+ if (QLineEdit* edit = qobject_cast<QLineEdit*>(legacySearchWidgets[i])) {
+ edit->clear();
+ }
}
fieldsPage_->emitCompletenessCheck();
}