extracted base class for dialogs with error message

Conflicts:
	plugins/remote_pictures/remote_pictures_dialog.py