mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 09:17:28 -05:00
parent
63ae460a80
commit
0b9167c78b
@ -23,6 +23,7 @@
|
|||||||
#include "autotype/AutoTypePlatformPlugin.h"
|
#include "autotype/AutoTypePlatformPlugin.h"
|
||||||
#include "autotype/AutoTypeSelectDialog.h"
|
#include "autotype/AutoTypeSelectDialog.h"
|
||||||
#include "autotype/WildcardMatcher.h"
|
#include "autotype/WildcardMatcher.h"
|
||||||
|
#include "core/Config.h"
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
#include "core/Entry.h"
|
#include "core/Entry.h"
|
||||||
#include "core/FilePath.h"
|
#include "core/FilePath.h"
|
||||||
@ -189,7 +190,7 @@ void AutoType::performGlobalAutoType(const QList<Database*>& dbList)
|
|||||||
if (entryList.isEmpty()) {
|
if (entryList.isEmpty()) {
|
||||||
m_inAutoType = false;
|
m_inAutoType = false;
|
||||||
}
|
}
|
||||||
else if (entryList.size() == 1) {
|
else if ((entryList.size() == 1) && !config()->get("security/autotypeask").toBool()) {
|
||||||
m_inAutoType = false;
|
m_inAutoType = false;
|
||||||
performAutoType(entryList.first(), Q_NULLPTR, sequenceHash[entryList.first()]);
|
performAutoType(entryList.first(), Q_NULLPTR, sequenceHash[entryList.first()]);
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,7 @@ void Config::init(const QString& fileName)
|
|||||||
m_defaults.insert("security/lockdatabaseidle", false);
|
m_defaults.insert("security/lockdatabaseidle", false);
|
||||||
m_defaults.insert("security/lockdatabaseidlesec", 10);
|
m_defaults.insert("security/lockdatabaseidlesec", 10);
|
||||||
m_defaults.insert("security/passwordscleartext", false);
|
m_defaults.insert("security/passwordscleartext", false);
|
||||||
|
m_defaults.insert("security/autotypeask", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
Config* Config::instance()
|
Config* Config::instance()
|
||||||
|
@ -83,6 +83,8 @@ void SettingsWidget::loadSettings()
|
|||||||
|
|
||||||
m_secUi->passwordCleartextCheckBox->setChecked(config()->get("security/passwordscleartext").toBool());
|
m_secUi->passwordCleartextCheckBox->setChecked(config()->get("security/passwordscleartext").toBool());
|
||||||
|
|
||||||
|
m_secUi->autoTypeAskCheckBox->setChecked(config()->get("security/autotypeask").toBool());
|
||||||
|
|
||||||
setCurrentRow(0);
|
setCurrentRow(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,6 +112,8 @@ void SettingsWidget::saveSettings()
|
|||||||
|
|
||||||
config()->set("security/passwordscleartext", m_secUi->passwordCleartextCheckBox->isChecked());
|
config()->set("security/passwordscleartext", m_secUi->passwordCleartextCheckBox->isChecked());
|
||||||
|
|
||||||
|
config()->set("security/autotypeask", m_secUi->autoTypeAskCheckBox->isChecked());
|
||||||
|
|
||||||
Q_EMIT editFinished(true);
|
Q_EMIT editFinished(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QCheckBox" name="autoTypeAskCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Always ask before performing auto-type</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
|
Loading…
Reference in New Issue
Block a user