-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Separator shouldn't display at bottom of "File" menu on Mac OS X #3345
Comments
@follower please issue a pull request and we'd happily merge. |
Thanks for taking a look. I'm working on a PR and decided it was probably still wise to keep the version check as we know the workaround is not needed on 4 and my impression of Qt so far is that assumptions it won't break anything on Qt 4 may be misplaced. :) Also, I've just realised that the "Help" menu also has the same issue, so will do the same there. |
When the Quit menu item is relocated to Application Menu on Mac OS X / macOS the separator above it should be removed. While Qt4 removes the separator, Qt5 does not remove the separator. For details see: * <LMMS#3345> * <https://bugreports.qt.io/browse/QTBUG-40071>
When the About menu item is relocated to Application Menu on Mac OS X / macOS the separator above it should be removed. While Qt4 removes the separator, Qt5 does not remove the separator. For details see: * <LMMS#3345> * <https://bugreports.qt.io/browse/QTBUG-40071>
The original Qt bug has now been closed as "Cannot Reproduce" as of Qt 5.6, are you able to confirm this with one of your builds with a later Qt @tresf? (Side note: As you might've guessed I finally managed to get Qt 5.5.1 + lmms building okay, so hopefully I can now contribute something more to lmms than requests for builds for obsolete OS. :D ) |
Yes, confirmed as fixed in Qt 5.7 |
Thanks for checking. :) So that's fixed within Qt 5.7 and without needing a workaround in lmms? If that's the case, would you like me to add an upper bound to the Qt version check for the workaround? |
Sounds like a noble idea. We're probably releasing 1.2 against Qt5.5 on Mac due to the |
I guess I'll take Qt's word for it and make the check be >= 5.0 and < 5.6. Feel free to verify 5.6. :) |
Closed by merge of #3350. |
FWIW recent tests & most recent comments on the original issue show that this issue still occurs in 5.6+. This suggests the upper-bound version check should probably just be removed. (The linked comment also provides an alternate approach example of |
Agreed. I see no harm in this. 👍 |
This seems to be a regression related to the move from Qt4 to Qt5.
Notice there is a separator at the bottom of the "File" menu which is unnecessary and shouldn't be there:
Version information (this is on Mac OS X 10.8.x):
For comparison here is the same menu with Qt4:
And version information for Qt4 build on same system:
The reason this occurs is because Qt automatically moves the "Quit" menu item from the file menu to the "
AppleApplication Menu" as is usual for the platform. Normally any redundant separator is also removed at the same time.This appears to be a known issue for Qt: "[QTBUG-40071] separatorsCollapsible does not work when menu items are moved to the application menu on Mac OS X".
I've added further detail to the QTBUG entry but have been unable to determine an underlying cause so far.
Before I realised it was an issue with Qt I developed a simple workaround which results in:
Given that it appears to be a known issue that's not been resolved in nearly 3 years I'd suggest using the workaround in lmms in the meantime.
If desired I can make a PR with the workaround (with further documentation):
The text was updated successfully, but these errors were encountered: