Implement ability to clone an entry when in search mode.

* Cloned entries have "- Clone" appended to their name
This commit is contained in:
Jonathan White 2017-01-25 20:02:32 -05:00
parent 6ccae6cc37
commit 16ed89c471
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
5 changed files with 9 additions and 5 deletions

View file

@ -566,7 +566,7 @@ void TestGui::testCloneEntry()
QCOMPARE(entryView->model()->rowCount(), 2);
Entry* entryClone = entryView->entryFromIndex(entryView->model()->index(1, 1));
QVERIFY(entryOrg->uuid() != entryClone->uuid());
QCOMPARE(entryClone->title(), entryOrg->title());
QCOMPARE(entryClone->title(), entryOrg->title() + QString(" - Clone"));
}
void TestGui::testDragAndDropEntry()