Skip to content

Commit 791b021

Browse files
committed
Clarify comment about QMessageBox crash wording
Reword the comment describing potential issues when a QTimer-triggered validation opens a modal QMessageBox while the parent window is closing. Replace the Windows-specific phrasing with a more general note about errors with unpredictable timing (heap corruption / access violations). No functional change; tests/CI mitigation guidance remains.
1 parent 34f0f89 commit 791b021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlclivegui/gui/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(self, config: ApplicationSettings | None = None):
185185
# NOTE IMPORTANT (tests/CI): This is scheduled via a QTimer and may fire during pytest-qt teardown.
186186
QTimer.singleShot(100, self._validate_configured_cameras)
187187
# If validation triggers a modal QMessageBox (warning/error) while the parent window is closing,
188-
# it can cause Windows native crashes (heap corruption / access violations).
188+
# it can cause errors with unpredictable timing (heap corruption / access violations).
189189
#
190190
# Mitigations for tests/CI:
191191
# - Disable this timer by monkeypatching _validate_configured_cameras in GUI tests

0 commit comments

Comments
 (0)