Bug 391875 - Searching for a word that is contained in the file you are downloading looks strange. r=mano

git-svn-id: svn://10.0.0.236/trunk@231923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sdwilsh%shawnwilsher.com
2007-08-12 10:02:53 +00:00
parent e18d798116
commit bc3a9d993c

View File

@@ -753,12 +753,16 @@ function buildDownloadListWithSearch(aTerms)
// parameter if we give it '%?1%', and we can't add spaces :(
sql += "name LIKE '%" + terms[i] + "%' ";
}
sql += "ORDER BY endTime ASC";
sql += "AND state != ?1 " +
"AND state != ?2 " +
"ORDER BY endTime ASC";
var db = gDownloadManager.DBConnection;
var stmt = db.createStatement(sql);
try {
stmt.bindInt32Parameter(0, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING);
stmt.bindInt32Parameter(1, Ci.nsIDownloadManager.DOWNLOAD_PAUSED);
buildDownloadList(stmt, gDownloadsOtherTitle);
} finally {
stmt.reset();