Fix: switching files works again.

updateAfterSelect() didn't call updatePlainTextEditMain()
Fixed bugs when clicking checkboxes on new files.