Cleaned up url display code

This commit is contained in:
Jonathan White 2017-10-25 23:29:01 -04:00 committed by thez3ro
parent b9fd609bb2
commit f3d85ae219
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
4 changed files with 11 additions and 7 deletions

View file

@ -247,6 +247,13 @@ QString Entry::webUrl() const
return resolveUrl(url);
}
QString Entry::displayUrl() const
{
QString url = maskPasswordPlaceholders(m_attributes->value(EntryAttributes::URLKey));
url = resolveMultiplePlaceholders(url);
return resolveUrl(url);
}
QString Entry::username() const
{
return m_attributes->value(EntryAttributes::UserNameKey);