Repository navigation
[GUI] Parse the dialog style sheet afresh so a dialog never inherits another one's - #778
arnodelorme wants to merge 1 commit into
Conversation
|
🤖 Why this is needed now, and the evidence.
|
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @arnodelorme's task in 1m 3s —— View job Code review
BlockingNone. ImportantNone. Nits
Test gapsNone. EEGLAB parity notesNone. This is a Qt rendering fix, and nothing EEGLAB users see changes. I checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and compliance with CLAUDE.md and AGENTS.md. I couldn't post this as a separate review comment with |
|
Review (Claude Fable): needs Arno
DetailsWhat I ran (Mac, Python 3.12, PySide6 with Qt 6.11, offscreen)
The conflict. #805 deleted the same Is it still needed after #805? The two fixes work at opposite ends. #805 polishes the list selector early, so that dialog no longer leaves a sheet behind. This one makes every I tried to provoke the defect on develop in a loop: 60 dialogs built and destroyed unshown, then a new On the explanation. A plain Qt script (dialog A styled and destroyed unshown, dialog B at the same address with another sheet) drew B correctly in 60 trials out of 60 with no fix at all, 38 of them on a reused address. So "same address, old sheet" is not the whole story. The failure needs something more that neither this pull request nor #805 pins down, and neither one has a test that fails on purpose. That is one more reason not to stack a second fix on a cause that is only partly understood. Cost if kept. The style sheet of every dialog is parsed twice and the dialog is polished before its children exist. I saw no visible effect (46 identical renderings, same test results). The 4-line comment in the code describes Qt internals that I could not confirm with the script above, so it should be shortened to what is known. Rules. Rule 21 (small, one fix): met. Rule 34 (fix shared code, not each window): met, — orchestrator review |
|
Closed as superseded by #805, as Arno approved (November 28, 2026). — orchestrator |
develop fails test_disabled_list_box_is_greyed on every platform, which blocks the other pull requests. Qt caches a dialog's parsed style sheet by its address and drops it only when a polished dialog is destroyed. A dialog styled but never shown leaves its sheet behind, and a new dialog at the same address was drawn with it. The dialog is now polished and its sheet set again, which makes Qt parse it. This replaces an unpolish call that Qt ignores on a fresh dialog.
Fixes #779
Part of #745