* src/widgets/modest-folder-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 18 Apr 2008 11:17:45 +0000 (11:17 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 18 Apr 2008 11:17:45 +0000 (11:17 +0000)
* Now we call to select first inbox on setting an account store
  to the folder view. This way we don't get blank startup header
  view in case there's no account available (or the case inbox
  is still not loaded (fixes NB#81375).

pmo-trunk-r4430

src/widgets/modest-folder-view.c

index 9618ab2..e189605 100644 (file)
@@ -1196,6 +1196,8 @@ modest_folder_view_set_account_store (TnyAccountStoreView *self, TnyAccountStore
                                  G_CALLBACK (on_account_changed), self);
 
        modest_folder_view_update_model (MODEST_FOLDER_VIEW (self), account_store);
+       priv->reselect = FALSE;
+       modest_folder_view_select_first_inbox_or_local (MODEST_FOLDER_VIEW (self));
        
        g_object_unref (G_OBJECT (device));
 }