Rev 139

Fixed delete multiple items crash which triggered after a new database
was opened or created