Mercurial > hg > Feedworm
diff MainWindow.py @ 121:510a5d00e98a backend
re-enabled AddFeed - does not work yet
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 21 Aug 2011 04:17:13 +0200 |
parents | e830fa1cc7a2 |
children | f5afe0c1f4d2 |
line wrap: on
line diff
--- a/MainWindow.py Sun Aug 21 04:04:37 2011 +0200 +++ b/MainWindow.py Sun Aug 21 04:17:13 2011 +0200 @@ -1,5 +1,5 @@ -#from AddFeed import AddFeed +from AddFeed import AddFeed from DisplayModel import DisplayModel from FeedEntryItemDelegate import FeedEntryItemDelegate from FeedEntryTableModel import FeedEntryTableModel @@ -142,18 +142,17 @@ self.ui.feedEntryList.doItemsLayout() def addFeed(self): - pass -# addFeed = AddFeed(self.session) -# success = addFeed.exec_() -# if not success: -# return -# -# if addFeed.exception is not None: -# message = "Error while adding feed: " + str(addFeed.exception) -# self._updateStatusBar(message) -# else: -# self.session.commit() -# self.updateFeedList() + addFeed = AddFeed(self.backend) + success = addFeed.exec_() + if not success: + return + + if addFeed.exception is not None: + message = "Error while adding feed: " + str(addFeed.exception) + self._updateStatusBar(message) + else: + self.session.commit() + self.updateFeedList() def deleteFeed(self): try: