Ignore an unused variable.
Add asserts in GroupModel::groupAboutToRemove().
Handle deleting groups more consistently.

Delete the entries and child groups in Group dtor
no what if the group has a database or not.
Stop suppressing signals in Group dtor.

That way we emit entry/group removed signals.

Move cleanupParent() call to the bottom so we
maintain the group tree structure for objects that
connect to those signals.
Add TestEntryModel::testDatabaseDelete().

It tests that EntryModel in EntryList mode correctly
removes entries from the model when that database of
these entries is deleted.
Close AutoTypeSelectDialog when there are no entries left.

This happens when the entries were deleted or the database
has been closed.
Coding style fixes.