Prompt to delete recycle bin when disabling it

Fixes #3365

Add prompt to delete the recycle bin when disabling it. If the user chooses not to delete it, the recycle bin will be suffixed with "(old)" and the icon changed to the default group icon.

Also moved recycle bin creation within the database class where it belongs.
This commit is contained in:
Mark Hakansson 2019-10-12 15:27:35 +02:00 committed by Jonathan White
parent a1e12c1b30
commit a876b3b72f
5 changed files with 39 additions and 16 deletions

View file

@ -799,7 +799,7 @@ void TestGroup::testAddEntryWithPath()
void TestGroup::testIsRecycled()
{
Database* db = new Database();
db->rootGroup()->createRecycleBin();
db->metadata()->setRecycleBinEnabled(true);
Group* group1 = new Group();
group1->setName("group1");