comparison src/historywidget.cpp @ 520:a17c06f773cd

idiot -- we don't need to query bookmarks separately, we can just add them to the log template
author Chris Cannam
date Wed, 09 Nov 2011 13:04:00 +0000
parents 000f13faa089
children a1d210c767ab
comparison
equal deleted inserted replaced
519:000f13faa089 520:a17c06f773cd
100 foreach (QString id, ids) { 100 foreach (QString id, ids) {
101 m_currentIds.push_back(id); 101 m_currentIds.push_back(id);
102 } 102 }
103 103
104 m_refreshNeeded = true; 104 m_refreshNeeded = true;
105 }
106
107 void HistoryWidget::setBookmarks(QHash<QString, QStringList> bookmarks)
108 {
109 m_bookmarks = bookmarks;
110 } 105 }
111 106
112 void HistoryWidget::setClosedHeadIds(QSet<QString> closed) 107 void HistoryWidget::setClosedHeadIds(QSet<QString> closed)
113 { 108 {
114 if (closed == m_closedIds) return; 109 if (closed == m_closedIds) return;
288 bool newid = m_newIds.contains(id); 283 bool newid = m_newIds.contains(id);
289 if (newid) { 284 if (newid) {
290 DEBUG << "id " << id << " is new" << endl; 285 DEBUG << "id " << id << " is new" << endl;
291 } 286 }
292 287
293 if (m_bookmarks.contains(id)) {
294 csit->setBookmarks(m_bookmarks[id]);
295 } else {
296 csit->setBookmarks(QStringList());
297 }
298
299 if (csit->isCurrent() != current || 288 if (csit->isCurrent() != current ||
300 csit->isNew() != newid) { 289 csit->isNew() != newid) {
301 csit->setCurrent(current); 290 csit->setCurrent(current);
302 csit->setNew(newid); 291 csit->setNew(newid);
303 csit->update(); 292 csit->update();