eric6/WebBrowser/Feeds/FeedsDialog.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
child 8265
0090cfa83159
diff -r fcb6b4b96274 -r 78e6d29eb773 eric6/WebBrowser/Feeds/FeedsDialog.py
--- a/eric6/WebBrowser/Feeds/FeedsDialog.py	Tue Apr 13 18:02:59 2021 +0200
+++ b/eric6/WebBrowser/Feeds/FeedsDialog.py	Tue Apr 13 19:59:17 2021 +0200
@@ -71,10 +71,8 @@
         if not url.isValid():
             return
         
-        if button.feed[0]:
-            title = button.feed[0]
-        else:
-            title = self.__browser.url().host()
+        title = (button.feed[0] if button.feed[0]
+                 else self.__browser.url().host())
         
         from WebBrowser.WebBrowserWindow import WebBrowserWindow
         feedsManager = WebBrowserWindow.feedsManager()

eric ide

mercurial