BUGFIX: changes to solve error dialog locked behind the (also modal) refinement window by allowing to set the parent of that error dialog