mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
searchs include now empty folders
This commit is contained in:
parent
e3f07b8db7
commit
c8af5c696c
@ -371,7 +371,7 @@ void TreeModel::setupFilteredModelData()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
selectQuery.prepare("SELECT DISTINCT f.id, f.parentId, f.name, f.path, f.finished, f.completed FROM folder f INNER JOIN comic c ON (f.id = c.parentId) WHERE f.id <> 1 AND ((UPPER(c.fileName) like UPPER(:filter)) OR (UPPER(f.name) like UPPER(:filter2))) ORDER BY f.parentId,f.name");
|
selectQuery.prepare("SELECT DISTINCT f.id, f.parentId, f.name, f.path, f.finished, f.completed FROM folder f LEFT JOIN comic c ON (f.id = c.parentId) WHERE f.id <> 1 AND ((UPPER(c.fileName) like UPPER(:filter)) OR (UPPER(f.name) like UPPER(:filter2))) ORDER BY f.parentId,f.name");
|
||||||
selectQuery.bindValue(":filter", "%%"+filter+"%%");
|
selectQuery.bindValue(":filter", "%%"+filter+"%%");
|
||||||
selectQuery.bindValue(":filter2", "%%"+filter+"%%");
|
selectQuery.bindValue(":filter2", "%%"+filter+"%%");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user