Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a crash that occurs when opening a second file within a workspace #33

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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