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

Honor Menu Item Enabled/Disabled State when Rebuilding Menu Item Tree #139

Merged
merged 6 commits into from Nov 4, 2020
Merged

Honor Menu Item Enabled/Disabled State when Rebuilding Menu Item Tree #139

merged 6 commits into from Nov 4, 2020

Conversation

shundhammer
Copy link
Contributor

@shundhammer shundhammer commented Nov 3, 2020

Bugzilla

https://bugzilla.opensuse.org/show_bug.cgi?id=1178394

Problem

When the content of a YaST dialog changes and keyboard shortcut conflicts are resolved, all menu items of a MenuBar are enabled, even though they are explicitly disabled internally.

This affects only the Qt UI.

Found by Ancor during development of
https://trello.com/c/MRJhR5x6/2080-1-partitioner-disable-menu-entries-from-device-and-add-when-an-nfs-device-is-selected

Fix

When rebuilding the menu item tree, set the enabled/disabled state of the corresponding Qt object (QAction or QMenu) according to the YMenuItem's enabled/disabled state.

Test Case

yast/yast-ycp-ui-bindings#60

See also the test instructions there.

@shundhammer shundhammer merged commit d5eca2d into libyui:master Nov 4, 2020
@shundhammer shundhammer deleted the huha-menu-shortcuts branch November 4, 2020 09:25
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.

None yet

2 participants