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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user