Focus the Team Monitor list view on Show(). Fixes #8775.

This commit is contained in:
Ryan Leavengood 2012-07-26 22:51:45 -04:00
parent 47b44bbedb
commit 1484de58a8
2 changed files with 9 additions and 2 deletions

View File

@ -260,6 +260,14 @@ TeamMonitorWindow::~TeamMonitorWindow()
}
void
TeamMonitorWindow::Show()
{
fListView->MakeFocus();
BWindow::Show();
}
void
TeamMonitorWindow::MessageReceived(BMessage* msg)
{
@ -416,8 +424,6 @@ TeamMonitorWindow::UpdateList()
}
fRestartButton->SetEnabled(!desktopRunning);
fListView->MakeFocus();
}

View File

@ -27,6 +27,7 @@ public:
virtual ~TeamMonitorWindow();
virtual void MessageReceived(BMessage* message);
virtual void Show();
virtual bool QuitRequested();
void Enable();