[pan2: 60/68] don't emit changed for nodes without articles.
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2: 60/68] don't emit changed for nodes without articles.
- Date: Tue, 8 Feb 2011 23:03:04 +0000 (UTC)
commit 15872480b346d7fa16863b455ce24091fbcdeec1
Author: K. Haley <haleykd users sf net>
Date: Sat Oct 16 14:27:12 2010 -0600
don't emit changed for nodes without articles.
pan/data-impl/headers.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pan/data-impl/headers.cc b/pan/data-impl/headers.cc
index a3083db..b8d5127 100644
--- a/pan/data-impl/headers.cc
+++ b/pan/data-impl/headers.cc
@@ -944,7 +944,9 @@ DataImpl :: rescore ()
const Quark& group (*git);
const GroupHeaders * h (get_group_headers (group));
foreach_const (nodes_t, h->_nodes, nit)
- mids.insert (mids.end(), nit->first);
+ //only insert mids for nodes with articles
+ if (nit->second->_article)
+ mids.insert (mids.end(), nit->first);
if (!mids.empty())
on_articles_changed (group, mids, true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]