Automatically set quotes to "lost" if deal is set to lost

Automatically set quotes to "lost" if deal is set to lost

Hi, 

Is there a way to automate that if a deal (opportunity) is lost the related quotes are also set to lost?

Thanks!