69 QUrl.ComponentFormattingOption.FullyDecoded) |
69 QUrl.ComponentFormattingOption.FullyDecoded) |
70 |
70 |
71 if not url.isValid(): |
71 if not url.isValid(): |
72 return |
72 return |
73 |
73 |
74 if button.feed[0]: |
74 title = (button.feed[0] if button.feed[0] |
75 title = button.feed[0] |
75 else self.__browser.url().host()) |
76 else: |
|
77 title = self.__browser.url().host() |
|
78 |
76 |
79 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
77 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
80 feedsManager = WebBrowserWindow.feedsManager() |
78 feedsManager = WebBrowserWindow.feedsManager() |
81 if feedsManager.addFeed(urlString, title, self.__browser.icon()): |
79 if feedsManager.addFeed(urlString, title, self.__browser.icon()): |
82 WebBrowserWindow.showNotification( |
80 WebBrowserWindow.showNotification( |