mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Show Auto-Type select dialog even if window title is empty
* Fixes #11597
This commit is contained in:
@@ -434,22 +434,14 @@ void AutoType::startGlobalAutoType(const QString& search)
|
||||
*/
|
||||
void AutoType::performGlobalAutoType(const QList<QSharedPointer<Database>>& dbList, const QString& search)
|
||||
{
|
||||
if (!m_plugin) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_inGlobalAutoTypeDialog.tryLock()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_windowTitleForGlobal.isEmpty()) {
|
||||
m_inGlobalAutoTypeDialog.unlock();
|
||||
if (!m_plugin || !m_inGlobalAutoTypeDialog.tryLock()) {
|
||||
return;
|
||||
}
|
||||
|
||||
QList<AutoTypeMatch> matchList;
|
||||
// Generate entry/sequence match list if there is a valid window title
|
||||
if (!m_windowTitleForGlobal.isEmpty()) {
|
||||
bool hideExpired = config()->get(Config::AutoTypeHideExpiredEntry).toBool();
|
||||
|
||||
for (const auto& db : dbList) {
|
||||
const QList<Entry*> dbEntries = db->rootGroup()->entriesRecursive();
|
||||
for (auto entry : dbEntries) {
|
||||
@@ -467,6 +459,9 @@ void AutoType::performGlobalAutoType(const QList<QSharedPointer<Database>>& dbLi
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
qWarning() << "Auto-Type: Window title was empty from the operating system";
|
||||
}
|
||||
|
||||
// Show the selection dialog if we always ask, have multiple matches, or no matches
|
||||
if (getMainWindow()
|
||||
|
||||
Reference in New Issue
Block a user