Fixed bug where delete button was still enabled while no selection was made after deleting rows.