Use setStyle whenever selecting a new
style in the dialog.

This requires directly selecting a style
when cloning it, without waiting for onAdd.
Merge pull request #499 from adityab/pdialog

Load current style properties when opening dialog