Commits

Erik Grinaker committed a08111c

fix bug in insecure password dialogs causing them never to accept an insecure password

Comments (0)

Files changed (1)

src/lib/dialog.py

 					response = Warning(
 						self, "Use insecure password?",
 						"The password you entered is not secure; " + str(res).lower() + ". Are you sure you want to use it?",
-						( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_CANCEL ) )
+						( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_OK ) ), gtk.RESPONSE_CANCEL
 					).run()
 
 					if response == gtk.RESPONSE_CANCEL:
 					response = Warning(
 						self, "Use insecure password?",
 						"The password you entered is not secure; " + str(res).lower() + ". Are you sure you want to use it?",
-						( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_CANCEL ) )
+						( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_OK ) ), gtk.RESPONSE_CANCEL
 					).run()
 
 					if response == gtk.RESPONSE_CANCEL:
 						continue
 
-
 				self.destroy()
 				return password