Re-enable Apply button when dragging a slider too
authorterencehill <piuntn@gmail.com>
Mon, 4 Jan 2016 13:02:01 +0000 (14:02 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/item/slider.qc

index 5cbd53b..4525af1 100644 (file)
                                v = median(0, (pos.x - me.pressOffset - 0.5 * me.controlWidth) / (1 - me.textSpace - me.controlWidth), 1) * (me.valueMax - me.valueMin) + me.valueMin;
                                if (me.valueStep) v = floor(0.5 + v / me.valueStep) * me.valueStep;
                                me.setValue_noAnim(me, v);
+                               if(me.applyButton)
+                                       me.applyButton.disabled = false;
                        }
                        else
                        {