mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Disable database unlock form while decrypting
This commit is contained in:
parent
dc6c9186c9
commit
6c65b486e4
@ -204,9 +204,14 @@ void DatabaseOpenWidget::openDatabase()
|
|||||||
|
|
||||||
m_db.reset(new Database());
|
m_db.reset(new Database());
|
||||||
QString error;
|
QString error;
|
||||||
|
|
||||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||||
|
m_ui->passwordFormFrame->setEnabled(false);
|
||||||
|
QCoreApplication::processEvents();
|
||||||
bool ok = m_db->open(m_filename, masterKey, &error, false);
|
bool ok = m_db->open(m_filename, masterKey, &error, false);
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
m_ui->passwordFormFrame->setEnabled(true);
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
if (m_ui->editPassword->text().isEmpty() && !m_retryUnlockWithEmptyPassword) {
|
if (m_ui->editPassword->text().isEmpty() && !m_retryUnlockWithEmptyPassword) {
|
||||||
QScopedPointer<QMessageBox> msgBox(new QMessageBox(this));
|
QScopedPointer<QMessageBox> msgBox(new QMessageBox(this));
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
<number>15</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="verticalFrame">
|
<widget class="QFrame" name="passwordFormFrame">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
|
Loading…
Reference in New Issue
Block a user