Mercurial > hg > Feedworm
comparison MainWindow.py @ 104:4f87be5399ff
double clicking a feed entry opens it in the external browser
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 05 Mar 2011 03:40:35 +0100 |
parents | 063581d8594e |
children | d372b3ee7bd8 |
comparison
equal
deleted
inserted
replaced
103:063581d8594e | 104:4f87be5399ff |
---|---|
86 if self.selectedEntry.feed.auto_load_entry_link: | 86 if self.selectedEntry.feed.auto_load_entry_link: |
87 self.openLinkFromSelectedEntry() | 87 self.openLinkFromSelectedEntry() |
88 else: | 88 else: |
89 self.openSummaryFromSelectedEntry() | 89 self.openSummaryFromSelectedEntry() |
90 | 90 |
91 def feedEntryDoubleClicked(self, index): | |
92 self.ui.menuArticle.setEnabled(True) | |
93 self.openSelectedEntryInBrowser() | |
94 | |
91 def openSummaryFromSelectedEntry(self): | 95 def openSummaryFromSelectedEntry(self): |
92 # TODO this is the wrong base url, figure out the correct one | 96 # TODO this is the wrong base url, figure out the correct one |
93 baseUrl = QUrl(self.selectedEntry.link) | 97 baseUrl = QUrl(self.selectedEntry.link) |
94 self.ui.webView.setHtml(self.selectedEntry.summary, baseUrl) | 98 self.ui.webView.setHtml(self.selectedEntry.summary, baseUrl) |
95 | 99 |