Patch by idefix, make sure the lists are properly scrolled to the selection

after showing the window. Thanks! Fixes #5576.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36343 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-04-19 08:46:29 +00:00
parent c9ec9c7211
commit 3d5f2c6f8d
@@ -130,12 +130,16 @@ BootPromptWindow::BootPromptWindow()
)
);
// This call in the first _PopulateKeymaps had no effect yet, since the
// list wasn't attatched to the window yet.
fKeymapsListView->ScrollToSelection();
CenterOnScreen();
Show();
Lock();
// This call in the first _PopulateLanguages/Keymaps had no effect yet,
// since the list wasn't attached to the window yet.
fLanguagesListView->ScrollToSelection();
fKeymapsListView->ScrollToSelection();
Unlock();
}
@@ -295,6 +299,8 @@ BootPromptWindow::_PopulateLanguages()
printf("failed to get BLanguage for %s\n", languageString);
}
fLanguagesListView->ScrollToSelection();
// Re-enable sending the selection message.
fLanguagesListView->SetSelectionMessage(
new BMessage(MSG_LANGUAGE_SELECTED));