[Qt] Unity ignores application's attempt to disable menu item.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
Undecided
|
Unassigned | ||
appmenu-qt |
Fix Released
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: unity
No clue if this is the right place to file this bug, but it does seem to be limited to Unity.
I have an application that creates a menu. There is a menu item in the menu that frequently gets enabled / disabled. When the application enables the menu item, everything works fine. However, disabling the menu item isn't working. This seems to be limited to Unity since it works in the Classic session.
Here is a simple Qt source file that demonstrates the problem: http://
To compile this brief demo:
1. Make sure that the Qt development files are installed.
2. Create a new folder and stick the code in 'main.cpp'
3. Create another file in that folder named 'demo.pro' and put this in it: http://
4. Open a terminal in that directory and run 'qmake demo.pro ; make'
5. You can then run the demo with './demo'
The expected behavior is that the menu item's state matches that of the checkbox. However, this does not seem to be the case on Unity - although the menu item enables itself when the checkbox is checked, it fails to disable itself when the checkbox is unchecked.
Details:
Ubuntu 11.04 64-bit
Qt 4.7.2
summary: |
- Unity ignores application's attempt to disable menu item. + [Qt] Unity ignores application's attempt to disable menu item. |
no longer affects: | qt4-x11 (Ubuntu) |
affects: | unity (Ubuntu) → appmenu-qt |
Changed in unity: | |
status: | Incomplete → Fix Released |
Changed in appmenu-qt: | |
status: | Incomplete → Fix Released |
Changed in unity (Ubuntu): | |
status: | New → Fix Released |
I managed to reproduce this one successfully. The appmenu in Unity doesn't update itself when a menuitem is disabled.