changeset 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 6bc6899f3330
children b535bce50626
files MainWindow.py Ui_MainWindow.ui
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MainWindow.py	Tue May 18 02:56:02 2010 +0200
+++ b/MainWindow.py	Tue May 18 02:58:31 2010 +0200
@@ -33,6 +33,9 @@
 
     def feedSelected(self, index):
         self.selectedFeed = self.allFeeds[index.row()]
+
+        self.ui.actionFeedSettings.setEnabled(True)
+        
         self.sortedEntries = self.selectedFeed.entriesSortedByUpdateDate()
         model = DisplayModel(self, self.sortedEntries, FeedEntry.userPresentableString)
         self.ui.feedEntryList.setModel(model)
--- a/Ui_MainWindow.ui	Tue May 18 02:56:02 2010 +0200
+++ b/Ui_MainWindow.ui	Tue May 18 02:58:31 2010 +0200
@@ -147,7 +147,7 @@
   </action>
   <action name="actionFeedSettings">
    <property name="enabled">
-    <bool>true</bool>
+    <bool>false</bool>
    </property>
    <property name="text">
     <string>Settings ...</string>