Use MainWindow as parent for all QMessageBoxes

A plugin window should not be used for this, because if the plugin
window is destroyed while a message box is using it as parent then
the program will crash.