diff options
author | Toni Spets <toni.spets@beeper.com> | 2022-02-07 10:16:17 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2022-02-09 03:07:00 +0300 |
commit | 5927821896a52ecf84b6f26725727f379fbc744c (patch) | |
tree | 6d5c6449128ba993763f7cc4a088319eba9ed635 /src/gui | |
parent | 86ba58da060fe8e73fd4deefa60563c27fc40530 (diff) |
Auto-Type: Only match non-empty associations
Previously empty associations matched any window but since you can
use a wildcard (*) if you specifically want that this change makes
it possible to define multiple sequences for the global search
if you need to.
Additionally show empty associations in the list as "(empty)" to
better differentiate between rows if no title is set.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/entry/AutoTypeAssociationsModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/entry/AutoTypeAssociationsModel.cpp b/src/gui/entry/AutoTypeAssociationsModel.cpp index fadd4fa1a..6e7b08bc0 100644 --- a/src/gui/entry/AutoTypeAssociationsModel.cpp +++ b/src/gui/entry/AutoTypeAssociationsModel.cpp @@ -92,6 +92,9 @@ QVariant AutoTypeAssociationsModel::data(const QModelIndex& index, int role) con if (role == Qt::DisplayRole) { if (index.column() == 0) { QString window = m_autoTypeAssociations->get(index.row()).window; + if (window.isEmpty()) { + return tr("(empty)"); + } if (m_entry) { window = m_entry->maskPasswordPlaceholders(window); window = m_entry->resolveMultiplePlaceholders(window); |