Skip to content

Commit

Permalink
small fix for palette search
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 27, 2016
1 parent 47cedec commit 83d7d0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mscore/palette.cpp
Expand Up @@ -127,10 +127,12 @@ bool Palette::filter(const QString& text)
bool c = false;
QStringList n = t.split(" ");
for (QString hs : h) {
for (QString ns : n)
c = hs.startsWith(ns);
if (c)
break;
for (QString ns : n) {
if (!ns.trimmed().isEmpty())
c = hs.trimmed().startsWith(ns.trimmed());
}
if (c)
break;
}
bool contains = t.isEmpty() || c;
cell->visible = contains;
Expand Down

0 comments on commit 83d7d0c

Please sign in to comment.