mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 00:39:53 -05:00
Show a busy cursor while doing master key transformations.
This commit is contained in:
parent
3a2f387892
commit
886187baee
@ -127,7 +127,9 @@ void DatabaseOpenWidget::openDatabase()
|
||||
if (m_db) {
|
||||
delete m_db;
|
||||
}
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
m_db = reader.readDatabase(&file, masterKey);
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
if (m_db) {
|
||||
Q_EMIT editFinished(true);
|
||||
|
@ -83,7 +83,11 @@ void DatabaseSettingsWidget::save()
|
||||
meta->setDescription(m_ui->dbDescriptionEdit->text());
|
||||
meta->setDefaultUserName(m_ui->defaultUsernameEdit->text());
|
||||
meta->setRecycleBinEnabled(m_ui->recycleBinEnabledCheckBox->isChecked());
|
||||
m_db->setTransformRounds(m_ui->transformRoundsSpinBox->value());
|
||||
if (static_cast<quint64>(m_ui->transformRoundsSpinBox->value()) != m_db->transformRounds()) {
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
m_db->setTransformRounds(m_ui->transformRoundsSpinBox->value());
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
bool truncate = false;
|
||||
|
||||
|
@ -504,7 +504,9 @@ void DatabaseWidget::switchToGroupEdit(Group* group, bool create)
|
||||
void DatabaseWidget::updateMasterKey(bool accepted)
|
||||
{
|
||||
if (accepted) {
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
m_db->setKey(m_changeMasterKeyWidget->newMasterKey());
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
else if (!m_db->hasKey()) {
|
||||
Q_EMIT closeRequest();
|
||||
|
@ -55,7 +55,9 @@ void KeePass1OpenWidget::openDatabase()
|
||||
if (m_db) {
|
||||
delete m_db;
|
||||
}
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
m_db = reader.readDatabase(&file, password, keyFileName);
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
if (m_db) {
|
||||
m_db->metadata()->setName(QFileInfo(m_filename).completeBaseName());
|
||||
|
Loading…
Reference in New Issue
Block a user