Skip to content

Commit

Permalink
Fix a crash that occurs when opening a second file within a workspace (
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Aug 3, 2022
1 parent df5e0c5 commit 5e004b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vspreview/main/window.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5e004b1

Please sign in to comment.