Select selected layer in input datasource
The input datasource always has selected the first layer by default.
More logical would be to select the same layer as in the legend, when it is the right type (see TOOLS-10)
Just committed the changes to make this happen.
Waiting for a quick review by and then I'll close this issue.