Fix: Entropy collection didn't work for pronounceable password generator
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@273 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -187,6 +187,14 @@ void CGenPwDialog::OnRadio2StateChanged(bool state){
|
||||
|
||||
void CGenPwDialog::OnGeneratePw()
|
||||
{
|
||||
if(Check_CollectEntropy->isChecked()){
|
||||
if((Check_CollectOncePerSession->isChecked() && !EntropyCollected) || !Check_CollectOncePerSession->isChecked()){
|
||||
CollectEntropyDlg dlg(this);
|
||||
dlg.exec();
|
||||
EntropyCollected=true;
|
||||
}
|
||||
}
|
||||
|
||||
int length = Spin_Num->value();
|
||||
QString password;
|
||||
|
||||
@@ -407,14 +415,6 @@ QString CGenPwDialog::generatePasswordInternal(int length){
|
||||
}
|
||||
}
|
||||
|
||||
if(Check_CollectEntropy->isChecked()){
|
||||
if((Check_CollectOncePerSession->isChecked() && !EntropyCollected) || !Check_CollectOncePerSession->isChecked()){
|
||||
CollectEntropyDlg dlg(this);
|
||||
dlg.exec();
|
||||
EntropyCollected=true;
|
||||
}
|
||||
}
|
||||
|
||||
QString password(length, '\0');
|
||||
|
||||
if (ensureEveryGroup){
|
||||
|
||||
Reference in New Issue
Block a user