Fix up mistake when inserting lines in linefeed

And remove some qdebugs ++