-
-
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
Fixes #6398: Colour of Master bus on FX Mixer retains when switching project #6421
Fixes #6398: Colour of Master bus on FX Mixer retains when switching project #6421
Conversation
🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩
macOSWindows
🤖{"platform_name_to_artifacts": {"macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://output.circle-artifacts.com/output/job/7a2d0730-7048-4264-bea2-3e134d323f53/artifacts/0/lmms-1.3.0-alpha.1.221+g8fe731fc9-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/17739?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/leo0sa49xlkmwv2c/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/44118529"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/kcwdgvxx7cnjafo3/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/44118529"}]}, "commit_sha": "6d8d0a587cccd58a02137f95e3193032f92c4db9"} |
Can't replicate in any way. Seems fixed. |
Merge? |
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.
The changes are OK. However, looking at the comment about m_hasColor
in the header, it's suggested to use std::optional
. Indeed, m_hasColor
is always used together with m_hasColor
, so (instead of using std::optional
) we could remove m_hasColor
and instead use QColor::isValid()
, which returns false
after using the default CTOR? This should reduce future errors, where m_hasColor
and QColor::isValid()
are not in sync.
Optional should be available by now though, I believe we already bumped to the required C++ version. |
True, but the we have redundant information in |
I don't think two validity information represent the same thing. Invalid |
I think they are equivalent in our current code. Do you see any use case in our code where an invalid |
No for now, but if we allow setting colors by name, for example, |
In my opinion, a single (possibly invalid) member of type QColor doesn't imply that having no color is an acceptable state. An optional makes it clear that we expect there to be situations where there's no color, and it's not necessarily an error. |
Look like the team is for using |
I feel like the switch to |
Well - I am somehow with @DomClark in that it may be too much for this tiny bug fix but I tried anyway :-) Not sure if I made it right though. Especially when calling the color selection dialog. |
@spechtstatt The use of |
Ok - I see - somehow like the Nullables in C#. Yes - makes sense. |
@spechtstatt It seems like somehow changed tabs to spaces. |
Oh sorry. I switched my Computer recently and I probably forgot to change it in the qt creator settings. |
@spechtstatt Could you address that with the indentation fixes(revert to tabs)? |
Yes of course. |
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.
Only minor and very easy-to-solve comments. Feel free to ignore.
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.
Code looks good except for one warning during build
6d8d0a5
to
3e37381
Compare
…ing project - solve remarks
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.
Confused by the commit log, but it builds fine and my comments seem to be fixed. Haven't test run tho.
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.
Tested. Bug is fixed an no regressions.
2 code reviews + 1 test review passed. Suggesting merge. |
@allejok96: you mean the commit message? Yes: I was repeating the issue title again like in the first commit which was probably not the best idea. |
@spechtstatt There is still one outstanding comment from PhysSong. Can you please try to fix it (or tell us if someone else should fix it)? |
@JohannesLorenz: not sure how to fix this - any suggestions? |
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.
Code style fixes and then we can merge :)
@spechtstatt Do you plan to continue this PR (solving the last open comments), or is it necessary that someone of the other devs takes over your PR? |
Hi Johannes, unfortunately, I currently have no time to work on the PR and this will continue for a while. So, yes. I would be happy if someone could take over. |
Co-authored-by: Kevin Zander <[email protected]>
According to Veratil and Dom, this can now be merged, so I will merge it now. |
Fixes #6398