Skip to content

Conversation

@jtmaxwell3
Copy link
Collaborator

@jtmaxwell3 jtmaxwell3 commented Jan 13, 2026

This is a general fix to problems with the Lexicon Edit Popup window, of which https://jira.sil.org/browse/LT-22352 is one instance (see in particular Bharanidharan's comment). The general problem is that the Lexicon Edit Popup window often violates the assumptions in the context menu commands and cause them to crash. In particular, there is an assumption that the Lexicon Edit pane is in the Lexicon frame and there are no other edit windows active at the same time. There are too many context menu commands in the Lexicon Edit pane to try to fix them all. So I disabled all of them. If the user tries to use a context menu, they get the error "Context menus are disabled in popup windows.".


This change is Reviewable

@jtmaxwell3
Copy link
Collaborator Author

BTW, Bharanidharan's error was the result of refreshing the interlinear text after senses were merged and the interlinear text having a reference to the sense that was deleted by the merge.

@jtmaxwell3 jtmaxwell3 changed the title Fix second LT-22352 problem General fix to Lexicon Edit Popup problems Jan 13, 2026
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@jasonleenaylor reviewed 8 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jtmaxwell3).

@jtmaxwell3 jtmaxwell3 merged commit e93fd7c into release/9.3 Jan 13, 2026
5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-22352b branch January 13, 2026 22:18
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this for now (to stave off the crashes) but I would rather see the menu items disabled.

@jasonleenaylor made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants