2021-02-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdlogedit(1) that broke searching for 'ALL'
	services.
	* Fixed a regression in rdlibrary(1) that broke searching for 'ALL'
	groups.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-25 08:32:39 -05:00
parent f8cb274627
commit 819af91cbe
6 changed files with 11 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ void RDComboBox::addIgnoredKey(int key)
bool RDComboBox::setCurrentText(const QString &str)
{
for(int i=0;i<count();i++) {
if(itemData(i).toString()==str) {
if(itemText(i)==str) {
setCurrentIndex(i);
return true;
}
@@ -92,7 +92,7 @@ void RDComboBox::keyPressEvent(QKeyEvent *e)
bool RDComboBox::IsItemUnique(const QString &str)
{
for(int i=0;i<count();i++) {
if(str==itemData(i).toString()) {
if(str==itemText(i)) {
return false;
}
}