Mercurial > hg > Feedworm
comparison FeedSettings.py @ 77:d292ab61ed6f
Add another setting to feed: when opening a feed entry in browser, you can force opening it in an external browser now. This is because some sites just crash the QWebView.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 14 Aug 2010 02:53:49 +0200 |
parents | 6bc6899f3330 |
children | d11c3f71ac40 |
comparison
equal
deleted
inserted
replaced
76:f909550683b0 | 77:d292ab61ed6f |
---|---|
12 self.initUi() | 12 self.initUi() |
13 | 13 |
14 def initUi(self): | 14 def initUi(self): |
15 self.ui.feedTitle.setText(self.feed.title) | 15 self.ui.feedTitle.setText(self.feed.title) |
16 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) | 16 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) |
17 self.ui.alwaysOpenInBrowser.setChecked(self.feed.always_open_in_browser) | |
18 | |
19 def editingTitleFinished(self): | |
20 title = str(self.ui.feedTitle.text()) | |
21 self.feed.title = title | |
17 | 22 |
18 def autoLoadArticleChanged(self, change): | 23 def autoLoadArticleChanged(self, change): |
19 if change: | 24 if change: |
20 self.feed.auto_load_entry_link = True | 25 self.feed.auto_load_entry_link = True |
21 else: | 26 else: |
22 self.feed.auto_load_entry_link = False | 27 self.feed.auto_load_entry_link = False |
28 | |
29 def alwaysOpenInExternalBrowser(self, change): | |
30 if change: | |
31 self.feed.always_open_in_browser = True | |
32 else: | |
33 self.feed.always_open_in_browser = False | |
23 | 34 |
24 def accept(self): | 35 def accept(self): |
25 self.session.commit() | 36 self.session.commit() |
26 QtGui.QDialog.accept(self) | 37 QtGui.QDialog.accept(self) |
27 | 38 |
28 def reject(self): | 39 def reject(self): |
29 self.session.rollback() | 40 self.session.rollback() |
30 QtGui.QDialog.reject(self) | 41 QtGui.QDialog.reject(self) |
31 | |
32 def editingTitleFinished(self): | |
33 title = str(self.ui.feedTitle.text()) | |
34 self.feed.title = title |