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:
sniperbeamer
2009-02-25 12:54:07 +00:00
parent 0c6cd885f6
commit 456bb2dc33
4 changed files with 73 additions and 71 deletions

View File

@@ -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){