Skip to content

Commit

Permalink
Guarantee case-insensitive filtering (#297)
Browse files Browse the repository at this point in the history
Closes #296
  • Loading branch information
tsujan authored Jan 16, 2025
1 parent 3328946 commit 0a01265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void Dialog::setFilter(const QString &text, bool onlyHistory)
QString trimmedText = text.simplified();
mCommandItemModel->setCommand(trimmedText);
mCommandItemModel->showOnlyHistory(onlyHistory);
QRegularExpression regExp(trimmedText);
QRegularExpression regExp(trimmedText, QRegularExpression::CaseInsensitiveOption);
mCommandItemModel->setFilterRegularExpression(regExp.isValid() ? regExp : QRegularExpression());
mCommandItemModel->invalidate();

Expand Down

0 comments on commit 0a01265

Please sign in to comment.