In 1939 he made the decision to quit, having decided that law rather than chemistry interested him.
He made the decision to quit. This was in 1939. He was having decided that law rather than chemistry. This was in 1939. This chemistry was interested him.