Commit a1ef11e8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use directly isEmpty

parent 565d4e0a
......@@ -364,7 +364,7 @@ void TodoSortFilterProxyModel::filterTodoName(QString name, int showCompleted)
{
Q_EMIT layoutAboutToBeChanged();
setFilterFixedString(name);
if (name.length() > 0) {
if (!name.isEmpty()) {
m_showCompleted = showCompleted;
} else {
setShowCompleted(m_showCompletedStore);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment