Remove unnecessary includes; remove dependency of error reporting on main window

Small improvements in the source code structure to disentangle dependencies.

Merge request reports

Loading