Fixed bug related to clearing log window. Warnings were emitted, when selecting a line >1 and clearing.