Author: stippi Date: 2010-02-21 22:59:27 +0100 (Sun, 21 Feb 2010) New Revision: 35570 Changeset: http://dev.haiku-os.org/changeset/35570/haiku Ticket: http://dev.haiku-os.org/ticket/5445 Modified: haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp Log: Patch by idefix that fixes scrolling the keymap list to the current entry when the window is first opened. Thanks! Fixes #5445. Modified: haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp =================================================================== --- haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp 2010-02-21 20:15:21 UTC (rev 35569) +++ haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp 2010-02-21 21:59:27 UTC (rev 35570) @@ -130,6 +130,10 @@ ) ); + // This call in the first _PopulateKeymaps had no effect yet, since the + // list wasn't attatched to the window yet. + fKeymapsListView->ScrollToSelection(); + CenterOnScreen(); Show(); }