-
-
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
DlgPrefSound: fix setting keylock engine from combobox #11047
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.
I do not understand the problem that is fixed here ...
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 seem like a noop to me too. Are you sure this is fixing the problem?
Thanks for looking into it btw. |
https://mixxx.zulipchat.com/#narrow/stream/109171-development/topic/Rubberband.203.2E0.20setting.20not.20applied.2Fsaved |
Nope. Just try with main. Select one of the RubberBand versions, apply and check the value in dev tools / mixxx.cfg |
e6e7ae7
to
eb19e10
Compare
const auto keylockEngine = | ||
keylockComboBox->currentData().value<EngineBuffer::KeylockEngine>(); | ||
m_pKeylockEngine->set(static_cast<double>(keylockEngine)); |
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.
interesting, apparently QVariant::toDouble
doesn't work if the contained type is an enum? https://doc.qt.io/qt-5/qvariant.html#toDouble
Am I reading that correctly?
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.
LGTM, The broken QVariant<enum_t>::toDouble
is a bad tripping hazard though, we might want to file a QTBUG.
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.
Thank you for the fix and your fast responds
DlgPrefSound: fix setting keylock engine from combobox
DlgPrefSound: fix setting keylock engine from combobox
DlgPrefSound: fix setting keylock engine from combobox
DlgPrefSound: fix setting keylock engine from combobox
DlgPrefSound: fix setting keylock engine from combobox
previously the new engine wasn't applied due to wrong type conversion 😬