mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Disallow global auto-typing when the database is locked.
This commit is contained in:
parent
1decdc6c11
commit
2963752585
@ -597,5 +597,17 @@ void DatabaseTabWidget::connectDatabase(Database* newDb, Database* oldDb)
|
|||||||
|
|
||||||
void DatabaseTabWidget::performGlobalAutoType()
|
void DatabaseTabWidget::performGlobalAutoType()
|
||||||
{
|
{
|
||||||
autoType()->performGlobalAutoType(m_dbList.keys());
|
QList<Database*> unlockedDatabases;
|
||||||
|
|
||||||
|
QHashIterator<Database*, DatabaseManagerStruct> i(m_dbList);
|
||||||
|
while (i.hasNext()) {
|
||||||
|
i.next();
|
||||||
|
DatabaseWidget::Mode mode = i.value().dbWidget->currentMode();
|
||||||
|
|
||||||
|
if (mode != DatabaseWidget::LockedMode) {
|
||||||
|
unlockedDatabases.append(i.key());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
autoType()->performGlobalAutoType(unlockedDatabases);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user