[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [korganizer] src/dialog: Minor
From: Montel Laurent <montel () kde ! org>
Date: 2016-12-09 7:54:33
Message-ID: E1cFG0n-0007Gb-H2 () code ! kde ! org
[Download RAW message or body]
Git commit ab8de1af5ae341a8ca38f592a2ec2c056146e783 by Montel Laurent.
Committed on 09/12/2016 at 07:54.
Pushed by mlaurent into branch 'master'.
Minor
M +2 -1 src/dialog/filtereditdialog.cpp
https://commits.kde.org/korganizer/ab8de1af5ae341a8ca38f592a2ec2c056146e783
diff --git a/src/dialog/filtereditdialog.cpp b/src/dialog/filtereditdialog.cpp
index fce8c7c4..5fbd327e 100644
--- a/src/dialog/filtereditdialog.cpp
+++ b/src/dialog/filtereditdialog.cpp
@@ -180,7 +180,8 @@ void FilterEdit::saveChanges()
mCurrent->setCompletedTimeSpan(mCompletedTimeSpan->value());
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);
if (item) {
categoryList.append(item->text());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic