eric6/WebBrowser/Feeds/FeedsDialog.py

changeset 7937
181d1160f617
parent 7923
91e843545d9a
child 7955
567f2ec958c3
--- a/eric6/WebBrowser/Feeds/FeedsDialog.py	Sat Jan 02 12:15:33 2021 +0100
+++ b/eric6/WebBrowser/Feeds/FeedsDialog.py	Sat Jan 02 15:18:36 2021 +0100
@@ -7,6 +7,8 @@
 Module implementing a dialog to add RSS feeds.
 """
 
+import functools
+
 from PyQt5.QtCore import QUrl
 from PyQt5.QtWidgets import QDialog, QPushButton, QLabel
 
@@ -47,7 +49,8 @@
             label.setText(feed[0])
             self.feedsLayout.addWidget(label, row, 0)
             self.feedsLayout.addWidget(button, row, 1)
-            button.clicked.connect(lambda: self.__addFeed(button))
+            button.clicked.connect(
+                functools.partial(self.__addFeed, button))
         
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())

eric ide

mercurial