372 return |
371 return |
373 |
372 |
374 # prompt, if the form has never be seen |
373 # prompt, if the form has never be seen |
375 key = self.__createKey(url, "") |
374 key = self.__createKey(url, "") |
376 if key not in self.__loginForms: |
375 if key not in self.__loginForms: |
377 mb = QMessageBox() |
376 mb = E5MessageBox.E5MessageBox(E5MessageBox.Question, |
378 mb.setText(self.trUtf8( |
377 self.trUtf8("Save password"), |
379 """<b>Would you like to save this password?</b><br/>""" |
378 self.trUtf8( |
380 """To review passwords you have saved and remove them, """ |
379 """<b>Would you like to save this password?</b><br/>""" |
381 """use the password management dialog of the Settings menu.""" |
380 """To review passwords you have saved and remove them, """ |
382 )) |
381 """use the password management dialog of the Settings menu."""), |
|
382 modal = True) |
383 neverButton = mb.addButton( |
383 neverButton = mb.addButton( |
384 self.trUtf8("Never for this site"), QMessageBox.DestructiveRole) |
384 self.trUtf8("Never for this site"), E5MessageBox.DestructiveRole) |
385 noButton = mb.addButton(self.trUtf8("Not now"), QMessageBox.RejectRole) |
385 noButton = mb.addButton(self.trUtf8("Not now"), E5MessageBox.RejectRole) |
386 mb.addButton(QMessageBox.Yes) |
386 mb.addButton(E5MessageBox.Yes) |
387 mb.exec_() |
387 mb.exec_() |
388 if mb.clickedButton() == neverButton: |
388 if mb.clickedButton() == neverButton: |
389 self.__never.append(url.toString()) |
389 self.__never.append(url.toString()) |
390 return |
390 return |
391 elif mb.clickedButton() == noButton: |
391 elif mb.clickedButton() == noButton: |