Originally Posted by
HypnoticSpecter
...
By the way, good friend of mine says once u get back to DOH I can't leave Europe even if its a transit. Is this true ?
Your friend is incorrect
The fare rules allow a second visit to Europe/Middle East, even when it is your continent of origin - as it is in your case
The fare rules in force when* your purchased your ticket, in November 2016, stipulated "one of the visits to Europe/Middle East must be a transfer without stopover between Africa and the previous/next continent".
Logically, when Europe/Middle East is your continent of origin, this visit must be the second visit.
Your proposed ...LAX-xDOH-CPT... satisfies the requirement
* The rules have since changed, and the "transfer without stopover" requirement has been removed