fix regexp matching

This commit is contained in:
arcan1s
2014-10-14 05:15:13 +04:00
parent c18bb61521
commit 4fc2e238bd
6 changed files with 21 additions and 14 deletions

View File

@ -277,8 +277,7 @@ QStringList AwesomeWidget::findKeys()
QStringList selectedKeys;
for (int i=0; i<keys.count(); i++)
if (configuration[QString("text")]
.indexOf(QString("$") + keys[i]) > -1) {
if (configuration[QString("text")].contains(QString("$") + keys[i])) {
if (debug) qDebug() << PDEBUG << ":" << "Found key" << keys[i];
selectedKeys.append(keys[i]);
}