Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit bb10520

Browse files
committed
Revert storing of messagebox
- This is NOT done because the original crash was reproducible - but just out of pure legacy reasons for if the error might still occur. It would be worth looking into whether the crash can still be reproduced in recent Blender versions without this logic.
1 parent f576be7 commit bb10520

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • openpype/tools/workfiles

openpype/tools/workfiles/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,10 @@ def __init__(self, parent=None):
544544
# file on a refresh of the files model.
545545
self.auto_select_latest_modified = True
546546

547+
# Avoid crash in Blender and store the message box
548+
# (setting parent doesn't work as it hides the message box)
549+
self._messagebox = None
550+
547551
files_view = FilesView(self)
548552

549553
# Create the Files model
@@ -722,7 +726,7 @@ def open_file(self, filepath):
722726
self.file_opened.emit()
723727

724728
def save_changes_prompt(self):
725-
messagebox = QtWidgets.QMessageBox(parent=self)
729+
self._messagebox = messagebox = QtWidgets.QMessageBox(parent=self)
726730
messagebox.setWindowFlags(messagebox.windowFlags() |
727731
QtCore.Qt.FramelessWindowHint)
728732
messagebox.setIcon(messagebox.Warning)

0 commit comments

Comments
 (0)