From 220d9039bbc09ec448e2f7e54386b35f45c5d1ed Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 25 Mar 2010 19:20:16 +0000 Subject: [PATCH] reset only ComboBox when close all search results git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2632 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/SearchDialog.cpp | 2 +- retroshare-gui/src/gui/SearchDialog.ui | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/SearchDialog.cpp b/retroshare-gui/src/gui/SearchDialog.cpp index f1fb74d7e..a9b647f2f 100644 --- a/retroshare-gui/src/gui/SearchDialog.cpp +++ b/retroshare-gui/src/gui/SearchDialog.cpp @@ -444,6 +444,7 @@ void SearchDialog::searchRemoveAll() { ui.searchResultWidget->clear(); ui.searchSummaryWidget->clear(); + ui.FileTypeComboBox->setCurrentIndex(0); nextSearchId = 1; } @@ -451,7 +452,6 @@ void SearchDialog::searchRemoveAll() void SearchDialog::clearKeyword() { ui.lineEdit->clear(); - ui.FileTypeComboBox->setCurrentIndex(0); ui.lineEdit->setFocus(); } diff --git a/retroshare-gui/src/gui/SearchDialog.ui b/retroshare-gui/src/gui/SearchDialog.ui index 6e7ce2c2c..fd30427ed 100644 --- a/retroshare-gui/src/gui/SearchDialog.ui +++ b/retroshare-gui/src/gui/SearchDialog.ui @@ -1097,7 +1097,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; - Clear all Search Results + Close All Search Results