10 if ( ! pw.isEmpty() )
return pw;
15 if ( currentHash.isEmpty() )
17 QMessageBox::information(
this,
18 tr(
"Password Error" ),
19 tr(
"The Master Password has not been set." ) );
28 pw = QInputDialog::getText(
30 tr(
"Master Password" ),
31 tr(
"Please input your Master Password" ),
37 if ( ! ok )
return QString();
41 QCryptographicHash::hash( pw.toAscii(), QCryptographicHash::Sha1 );
43 if ( hash == currentHash )
break;
45 QMessageBox::information(
this,
46 tr(
"Password Error" ),
47 tr(
"The password is incorrect." ) );