Merge "The print dialog in bad state after pressing back from prnt to PDF." into klp-dev