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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user