eric6/CondaInterface/CondaExportDialog.py

changeset 8257
28146736bbfc
parent 8218
7c09585bd960
--- a/eric6/CondaInterface/CondaExportDialog.py	Tue Apr 20 19:38:10 2021 +0200
+++ b/eric6/CondaInterface/CondaExportDialog.py	Tue Apr 20 19:47:39 2021 +0200
@@ -107,14 +107,15 @@
         """
         Private slot to refresh the displayed list.
         """
-        if self.__requirementsEdited:
-            ok = E5MessageBox.yesNo(
+        ok = (
+            E5MessageBox.yesNo(
                 self,
                 self.tr("Generate Requirements"),
                 self.tr("""The requirements were changed. Do you want"""
                         """ to overwrite these changes?"""))
-        else:
-            ok = True
+            if self.__requirementsEdited else
+            True
+        )
         if ok:
             self.start()
     

eric ide

mercurial