Commit 48e50b93 authored by Ivan Čukić's avatar Ivan Čukić 👁

Disable the password dialogue while trying to open the vault

parent eeedbb05
......@@ -40,11 +40,15 @@ MountDialog::MountDialog(PlasmaVault::Vault *vault, const std::function<void()>
void MountDialog::accept()
{
setCursor(Qt::WaitCursor);
setEnabled(false);
m_ui.password->lineEdit()->setCursor(Qt::WaitCursor);
QString pwd = m_ui.password->password();
auto future = m_vault->open({ { KEY_PASSWORD, pwd } });
const auto result = AsynQt::await(future);
unsetCursor();
setEnabled(true);
m_ui.password->lineEdit()->unsetCursor();
if (result) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment