Select new entry after cloning

Also fixes re-selecting entries during a search refresh
This commit is contained in:
Akinori MUSHA 2023-02-06 04:37:26 +09:00 committed by Jonathan White
parent 0167ce60bd
commit cbbabf477a
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
7 changed files with 59 additions and 41 deletions

View file

@ -1200,6 +1200,7 @@ void TestGui::testCloneEntry()
Entry* entryClone = entryView->entryFromIndex(entryView->model()->index(1, 1));
QVERIFY(entryOrg->uuid() != entryClone->uuid());
QCOMPARE(entryClone->title(), entryOrg->title() + QString(" - Clone"));
QVERIFY(m_dbWidget->currentSelectedEntry()->uuid() == entryClone->uuid());
}
void TestGui::testEntryPlaceholders()