change inAutotype logic, preventing multiple autotype call

This commit is contained in:
thez3ro 2018-01-24 20:08:56 +01:00
parent ba4ef52e9e
commit a76c92ed9a
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
8 changed files with 44 additions and 56 deletions

View file

@ -226,18 +226,18 @@ QString Entry::defaultAutoTypeSequence() const
*/
QString Entry::effectiveAutoTypeSequence() const
{
if (autoTypeEnabled() == false) {
return QString();
if (!autoTypeEnabled()) {
return {};
}
const Group* parent = group();
if (!parent) {
return QString();
return {};
}
QString sequence = parent->effectiveAutoTypeSequence();
if (sequence.isEmpty()) {
return QString();
return {};
}
if (!m_data.defaultAutoTypeSequence.isEmpty()) {