Update optimum qstep on maxextension change.

This avoids inconsistent change in qgrid when maxextension is set to 0.