Fix problem with program hanging when selecting new file when in
print-preview mode