Initial work on using SQL for MPD cache. Not 100% functional. Eventually

will also use SQL for Jamendo and Magantune...
This commit is contained in:
Craig Drummond
2015-06-07 22:18:19 +01:00
committed by Craig Drummond
parent 5579f10ecd
commit 4a713c7ec9
111 changed files with 1730 additions and 5299 deletions

View File

@@ -92,11 +92,11 @@ bool ProxyModel::matchesFilter(const QStringList &strings) const
return false;
}
//#include <QDebug>
bool ProxyModel::update(const QString &txt, const QString &genre)
bool ProxyModel::update(const QString &txt)
{
QString text=txt.length()<2 ? QString() : txt;
// qWarning() << "UPDATE" << txt << genre << (void *)f;
if (text==origFilterText && genre==filterGenre) {
// qWarning() << "UPDATE" << txt << (void *)f;
if (text==origFilterText) {
// qWarning() <<"NO CHANGE";
return false;
}
@@ -110,9 +110,8 @@ bool ProxyModel::update(const QString &txt, const QString &genre)
}
origFilterText=text;
filterGenre=genre;
if (text.isEmpty() && genre.isEmpty()) {
if (text.isEmpty()) {
if (filterEnabled) {
filterEnabled=false;
if (!wasEmpty) {