r34118 broke setting the repeat delay in the Keyboard preflet.

Thanks to diver for tracking it down! Fixes #5281.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35886 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-03-17 10:07:31 +00:00
parent a1070c1661
commit 2db604ae36

View File

@ -168,8 +168,10 @@ KeyboardWindow::MessageReceived(BMessage* message)
if (delay >= 875000)
delay = 1000000;
fSettings.SetKeyboardRepeatDelay(delay);
slider = (BSlider* )FindView("delay_until_key_repeat");
if (slider !=NULL)
if (slider != NULL)
slider->SetValue(delay);
fDefaultsButton->SetEnabled(fSettings.IsDefaultable());