diff --git a/vspreview/main/window.py b/vspreview/main/window.py index 85875858..b73895da 100644 --- a/vspreview/main/window.py +++ b/vspreview/main/window.py @@ -576,7 +576,7 @@ def update_display_profile(self) -> None: with open(icc_path, 'rb') as icc: self.display_profile = QColorSpace.fromIccProfile(icc.read()) - if hasattr(self, 'current_output') and self.display_profile is not None: + if hasattr(self, 'current_output') and self.current_output is not None and self.display_profile is not None: self.switch_frame(self.current_output.last_showed_frame) def show_message(self, message: str) -> None: