[PC-BSD Commits] r9463 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Wed Mar 2 12:06:38 PST 2011


Author: kris
Date: 2011-03-02 12:06:38 -0800 (Wed, 02 Mar 2011)
New Revision: 9463

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
Log:

When displaying PBIs / categories, search case-insensitive



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-03-02 16:39:55 UTC (rev 9462)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-03-02 20:06:38 UTC (rev 9463)
@@ -131,7 +131,7 @@
 	found=false;
 	int pTot = pbiAvail->count();
 	for( int i = 0; i < pTot; i++) {
-		if ( pbiAvail->getCat(i) != cat || pbiAvail->getRepo(i) != pbiRepos->getID(curRepo) )
+		if ( pbiAvail->getCat(i).toLower() != cat.toLower() || pbiAvail->getRepo(i) != pbiRepos->getID(curRepo) )
 			continue;
 
 		found = true;
@@ -230,7 +230,7 @@
 
 	int pTot = pbiAvail->count();
 	for( int i = 0; i < pTot; i++)
-		if ( pbiAvail->getName(i) == pbi || pbiAvail->getRepo(i) != pRepo) {
+		if ( pbiAvail->getName(i).toLower() == pbi.toLower() || pbiAvail->getRepo(i) != pRepo) {
 			pbiNum = i;
 			break;
 		}



More information about the Commits mailing list