From 5fb9e9cec769f24f1d4eafd314d8af2252360d25 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Tue, 2 Jan 2007 20:16:21 +0000 Subject: [PATCH] Automatically select the main item for a newly-created account git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19680 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/mail/Account.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/preferences/mail/Account.cpp b/src/preferences/mail/Account.cpp index 74da1f67f0..12248f6d85 100644 --- a/src/preferences/mail/Account.cpp +++ b/src/preferences/mail/Account.cpp @@ -650,6 +650,9 @@ void Accounts::NewAccount() Account *account = new Account(); gAccounts.AddItem(account); account->AddToListView(); + + if (gListView) + gListView->Select(gListView->IndexOf(account->fAccountItem)); }