J.A.C.K.

J.A.C.K.

View Stats:
BUG: Plugin API's SpinBox dialog option isn't working as intended
The problem lies in two plugin API functions where it changes a SpinBox value before changing it's minimum/maximum value. This results in our value being clamped to default Qt range (0-99) or some other undefined behavior.

Bug examples
JackAPI()->Dialog_AddSpinBox("i", "#1", 1000, 0, 5000, 1, 0); // Results in 1000 -> 99 JackAPI()->Dialog_AddSpinBoxFloat("f", "#2", 1000.0f, 0.0f, 5000.0f, 1.0f, 0); // Results in 1000.0f -> 99.99f

Dialog_AddSpinBox
call cs:QSpinBox::setValue(int) ; BUG: Value gets clamped ... call cs:QSpinBox::setMinimum(int) ... call cs:QSpinBox::setMaximum(int)

Dialog_AddSpinBoxFloat
call cs:QDoubleSpinBox::setValue(double) ; BUG: Value gets clamped ... call cs:QDoubleSpinBox::setMinimum(double) ... call cs:QDoubleSpinBox::setMaximum(double)

The fix is pretty straightforward, just move the order of the function calls.
< >
Showing 1-3 of 3 comments
Dec 23, 2024 @ 1:07pm 
As of today, plugin SDK for J.A.C.K. doesn't exist.
Right, but when you publish it, it's going to be better without bugs.
Dec 24, 2024 @ 6:32am 
Sure, thanks for pointing that out anyway. Will be fixed in the next beta.
< >
Showing 1-3 of 3 comments
Per page: 1530 50