Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 57d2257c authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 6c5b0e65
......@@ -322,7 +322,7 @@ void AdBlockSettingWidget::save()
QStringList disableCustomFilter;
QTextStream out(&ruleFile);
for (int i = 0; i < mUi->manualFiltersListWidget->count(); ++i) {
for (int i = 0, total = mUi->manualFiltersListWidget->count(); i < total; ++i) {
QListWidgetItem *subItem = mUi->manualFiltersListWidget->item(i);
const QString stringRule = subItem->text();
if (!stringRule.trimmed().isEmpty()) {
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