comparison MainWindow.py @ 107:863599e84269

do not toggle selected feed entries' read status, mark them as read for good
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 17 Mar 2011 02:56:56 +0100
parents d372b3ee7bd8
children 04f8cf1558c1
comparison
equal deleted inserted replaced
106:2ab09e7a3691 107:863599e84269
136 if index.column() == 0: 136 if index.column() == 0:
137 row = index.row() 137 row = index.row()
138 # use selectedEntry here to ensure it has a valid state after all 138 # use selectedEntry here to ensure it has a valid state after all
139 # selected entries are marked read 139 # selected entries are marked read
140 self.selectedEntry = self.feedEntries[row] 140 self.selectedEntry = self.feedEntries[row]
141 self.selectedEntry.toggleRead() 141 self.selectedEntry.markRead()
142 self.session.commit() 142 self.session.commit()
143 self.ui.feedEntryList.doItemsLayout() 143 self.ui.feedEntryList.doItemsLayout()
144 144
145 def addFeed(self): 145 def addFeed(self):
146 addFeed = AddFeed(self.session) 146 addFeed = AddFeed(self.session)