mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 05:52:33 -04:00
change inAutotype logic, preventing multiple autotype call
This commit is contained in:
parent
ba4ef52e9e
commit
a76c92ed9a
8 changed files with 44 additions and 56 deletions
|
@ -310,7 +310,7 @@ void TestAutoType::testAutoTypeEffectiveSequences()
|
|||
QString sequenceDisabled("{TEST_DISABLED}");
|
||||
QString sequenceOrphan("{TEST_ORPHAN}");
|
||||
|
||||
Database* db = new Database();
|
||||
QScopedPointer<Database> db(new Database());
|
||||
QPointer<Group> rootGroup = db->rootGroup();
|
||||
|
||||
// Group with autotype enabled and custom default sequence
|
||||
|
@ -362,7 +362,7 @@ void TestAutoType::testAutoTypeEffectiveSequences()
|
|||
entry5->setAutoTypeEnabled(false);
|
||||
|
||||
// Entry with no parent
|
||||
QPointer<Entry> entry6 = new Entry();
|
||||
QScopedPointer<Entry> entry6(new Entry());
|
||||
entry6->setDefaultAutoTypeSequence(sequenceOrphan);
|
||||
|
||||
QCOMPARE(entry1->defaultAutoTypeSequence(), QString());
|
||||
|
@ -377,6 +377,4 @@ void TestAutoType::testAutoTypeEffectiveSequences()
|
|||
QCOMPARE(entry5->effectiveAutoTypeSequence(), QString());
|
||||
QCOMPARE(entry6->defaultAutoTypeSequence(), sequenceOrphan);
|
||||
QCOMPARE(entry6->effectiveAutoTypeSequence(), QString());
|
||||
|
||||
delete db;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue