diff FeedSettings.py @ 79:d11c3f71ac40

Make update interval editable via the feed's settings dialog.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 14 Aug 2010 03:11:15 +0200
parents d292ab61ed6f
children a4b2077c9603
line wrap: on
line diff
--- a/FeedSettings.py	Sat Aug 14 02:54:01 2010 +0200
+++ b/FeedSettings.py	Sat Aug 14 03:11:15 2010 +0200
@@ -13,12 +13,18 @@
         
     def initUi(self):
         self.ui.feedTitle.setText(self.feed.title)
+        self.ui.updateInterval.setText(str(self.feed.update_interval))
         self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link)
         self.ui.alwaysOpenInBrowser.setChecked(self.feed.always_open_in_browser)
 
     def editingTitleFinished(self):
         title = str(self.ui.feedTitle.text())
         self.feed.title = title
+        
+    def editingUpdateIntervalFinished(self):
+        updateInterval = int(str(self.ui.updateInterval.text()))
+        self.feed.update_interval = updateInterval
+        self.feed.incrementNextUpdateDate()
 
     def autoLoadArticleChanged(self, change):
         if change: