Don't active the delete item menu or toolbar button unless a valid entry is selected. This prevents an assert in an empty db if the Delete button on toolbar is clicked.
Don't active the delete item menu or toolbar button unless a valid entry is selected. This prevents an assert in an empty db if the Delete button on toolbar is clicked.

Signed-off-by: ronys <08c6d4882e15ec62790d443115de7d59dcc9c70b@users.sourceforge.net>

ronys/pwsafe-test,sorinAche23/Psafe,Sp1l/pwsafe,Sp1l/pwsafe,gpmidi/pwsafe,Sp1l/pwsafe,sorinAche23/Psafe,gpmidi/pwsafe,gpmidi/pwsafe,sorinAche23/Psafe,Sp1l/pwsafe,sorinAche23/Psafe,gpmidi/pwsafe,sorinAche23/Psafe,ronys/pwsafe-test,sorinAche23/Psafe,gpmidi/pwsafe,ronys/pwsafe-test,ronys/pwsafe-test,Sp1l/pwsafe,ronys/pwsafe-test,Sp1l/pwsafe,Sp1l/pwsafe,gpmidi/pwsafe,sorinAche23/Psafe,Sp1l/pwsafe,sorinAche23/Psafe,ronys/pwsafe-test,ronys/pwsafe-test,ronys/pwsafe-test,gpmidi/pwsafe,gpmidi/pwsafe