PluginManager/PluginRepositoryDialog.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 553
5af61623ae3c
diff -r 2631831b4052 -r 00e1a5d060c5 PluginManager/PluginRepositoryDialog.py
--- a/PluginManager/PluginRepositoryDialog.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/PluginManager/PluginRepositoryDialog.py	Tue Aug 31 16:38:06 2010 +0200
@@ -499,17 +499,14 @@
         for err in errors:
             errorStrings.append(err.errorString())
         errorString = '.<br />'.join(errorStrings)
-        ret = E5MessageBox.warning(self,
+        ret = E5MessageBox.yesNo(self,
             self.trUtf8("SSL Errors"),
             self.trUtf8("""<p>SSL Errors:</p>"""
                         """<p>{0}</p>"""
                         """<p>Do you want to ignore these errors?</p>""")\
                 .format(errorString),
-            QMessageBox.StandardButtons(\
-                QMessageBox.No | \
-                QMessageBox.Yes),
-            QMessageBox.No)
-        if ret == QMessageBox.Yes:
+            type_ = E5MessageBox.Warning)
+        if ret:
             reply.ignoreSslErrors()
         else:
             self.__downloadCancelled = True
@@ -603,4 +600,4 @@
                 ).format(applPath),
                 self.trUtf8('OK'))
         
-        self.close()
\ No newline at end of file
+        self.close()

eric ide

mercurial