Here's what worked for me.
- Extract vertices from your line layer.
- Install Shape Tools Plugin. Use Create Shape function and create a "line of bearing". For the Azimuth Field input select ANGLE. For the distance field, nothing. Then specify a standard lenght for all the lines.
- Run it and you'll get a new line layer with the extendened lines. If you need the lines to go the other way, reverse the azimuth values. Hope it helps!