Prevent delete/edit if nothing is selected
Debug set category
bug fixed: category is not set while editing
Merge branch 'set-category-bug'
Removed done things, debug code