1. Erik Grinaker
  2. Revelation

Commits

Erik Grinaker  committed a08111c

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

  • Participants
  • Parent commits 86dd1c0
  • Branches default

Comments (0)

Files changed (1)

File src/lib/dialog.py

View file
  • Ignore whitespace
 					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