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

Minor

parent 2b9fe262
...@@ -180,7 +180,8 @@ void FilterEdit::saveChanges() ...@@ -180,7 +180,8 @@ void FilterEdit::saveChanges()
mCurrent->setCompletedTimeSpan(mCompletedTimeSpan->value()); mCurrent->setCompletedTimeSpan(mCompletedTimeSpan->value());
QStringList categoryList; QStringList categoryList;
for (int i = 0; i < mCatList->count(); ++i) { const int numberOfCat(mCatList->count());
for (int i = 0; i < numberOfCat; ++i) {
QListWidgetItem *item = mCatList->item(i); QListWidgetItem *item = mCatList->item(i);
if (item) { if (item) {
categoryList.append(item->text()); categoryList.append(item->text());
......
Markdown is supported
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