diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index cf701b4bc..8c2ba06d9 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -597,5 +597,17 @@ void DatabaseTabWidget::connectDatabase(Database* newDb, Database* oldDb) void DatabaseTabWidget::performGlobalAutoType() { - autoType()->performGlobalAutoType(m_dbList.keys()); + QList unlockedDatabases; + + QHashIterator 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); }