-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix: Preferences: Incomplete version check and update #9709 #11222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very good, I didn't know QVersionNumber was a thing, thats very useful. @uklotzde is this what you had in mind when filing #9709?
Please also make sure to setup pre-commit to ensure CI passes. See more in our Coding Guidelines.
Also before we can merge your work, we need your permission to distribute that with Mixxx. |
utilize QT6.4 functions if available and constify some variables. Co-authored-by: Swiftb0y <[email protected]>
One thing that just came to my mind, when I accepted your suggestion to use the QVersionString::fromString method: |
@Swiftb0y I have signed the contributor agreement, thanks for considering! |
Ah good point, I didn't see that it was available previously. IIRC the minimum version we need to support is Qt 5.12 and the Since this a bug, it would be appropriate to go into the 2.3 branch. Are you familiar on how to rebase on 2.3? |
Since this is a bugfix, it can go to the 2.3 branch. Please rebase your fix to 2.3. |
I checked further and QVersionNumber::fromString with the QString is available since 5.6.0 (https://devdocs.io/qt~5.6/qversionnumber#fromString) which means 2015, hence I will go ahead and simplify that. I will figure out and rebase towards 2.3. Is your release schedule tight here? |
Fix Initialization style issue. Co-authored-by: Daniel Schürmann <[email protected]>
…romString is available since 5.6.0 Signed-off-by: Florian Goth <[email protected]>
Thank you. In general it is better to do small independent pull requests. |
Not really, not for patch / bugfix releases afaik.
I'd also prefer a new PR, especially since the surrounding code does not seem very trivial to understand. Also the scope of that is rather a refactoring instead of bugfix so it should not go into the stable 2.3 branch. |
It seems like there are still more code style issues. Please resolve. |
I have rebased my changes to branch 2.3 . Since github doesn't allow me to modify the source branch I will open a new pull request. |
The new PR for 2.3 is over here: #11229 |
Thank you. Next time you may also just push the rebated branch to the original feature branch (not main like here) |
Closing this as the rebased branch has been merged: #11229 |
This would close #9709 in my opinion. I have introduced the QVersionString to simplify the final if statement.