13 from PyQt5.QtWidgets import QDialog, QPushButton, QLabel |
13 from PyQt5.QtWidgets import QDialog, QPushButton, QLabel |
14 |
14 |
15 from .Ui_FeedsDialog import Ui_FeedsDialog |
15 from .Ui_FeedsDialog import Ui_FeedsDialog |
16 |
16 |
17 import UI.PixmapCache |
17 import UI.PixmapCache |
|
18 from UI.NotificationWidget import NotificationTypes |
18 |
19 |
19 |
20 |
20 class FeedsDialog(QDialog, Ui_FeedsDialog): |
21 class FeedsDialog(QDialog, Ui_FeedsDialog): |
21 """ |
22 """ |
22 Class implementing a dialog to add RSS feeds. |
23 Class implementing a dialog to add RSS feeds. |
84 else: |
85 else: |
85 WebBrowserWindow.showNotification( |
86 WebBrowserWindow.showNotification( |
86 UI.PixmapCache.getPixmap("rss48"), |
87 UI.PixmapCache.getPixmap("rss48"), |
87 self.tr("Add RSS Feed"), |
88 self.tr("Add RSS Feed"), |
88 self.tr("""The feed was already added before."""), |
89 self.tr("""The feed was already added before."""), |
|
90 kind=NotificationTypes.Warning, |
89 timeout=0) |
91 timeout=0) |
90 |
92 |
91 self.close() |
93 self.close() |