From 5e004b1a7dfd6bae308f3463ab46dfdbc636e5e9 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Wed, 3 Aug 2022 09:06:45 -0400 Subject: [PATCH] Fix a crash that occurs when opening a second file within a workspace (#33) --- vspreview/main/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: