Mercurial > hg > Feedworm
comparison MainWindow.py @ 53:8cca4585eb33
the feed settings menu item starts out disabled and gets enabled once a feed is selected
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 18 May 2010 02:58:31 +0200 |
parents | 4b0d686493fb |
children | 0f9b3e57cff0 |
comparison
equal
deleted
inserted
replaced
52:6bc6899f3330 | 53:8cca4585eb33 |
---|---|
31 def initFeedEntryList(self): | 31 def initFeedEntryList(self): |
32 self.ui.feedEntryList.setItemDelegate(FeedEntryItemDelegate()) | 32 self.ui.feedEntryList.setItemDelegate(FeedEntryItemDelegate()) |
33 | 33 |
34 def feedSelected(self, index): | 34 def feedSelected(self, index): |
35 self.selectedFeed = self.allFeeds[index.row()] | 35 self.selectedFeed = self.allFeeds[index.row()] |
36 | |
37 self.ui.actionFeedSettings.setEnabled(True) | |
38 | |
36 self.sortedEntries = self.selectedFeed.entriesSortedByUpdateDate() | 39 self.sortedEntries = self.selectedFeed.entriesSortedByUpdateDate() |
37 model = DisplayModel(self, self.sortedEntries, FeedEntry.userPresentableString) | 40 model = DisplayModel(self, self.sortedEntries, FeedEntry.userPresentableString) |
38 self.ui.feedEntryList.setModel(model) | 41 self.ui.feedEntryList.setModel(model) |
39 self.ui.feedEntryList.itemDelegate().entries = self.sortedEntries | 42 self.ui.feedEntryList.itemDelegate().entries = self.sortedEntries |
40 self.ui.feedEntryList.update() | 43 self.ui.feedEntryList.update() |