Some debug output to help me with testing.
[modest] / src / widgets / modest-folder-view.c
index 05af376..80870b6 100644 (file)
@@ -289,6 +289,8 @@ static gboolean on_model_foreach_set_name(GtkTreeModel *model, GtkTreePath *path
 
 void on_get_mmc_account_name (TnyStoreAccount* account, gpointer user_data)
 {
+       printf ("DEBUG: %s: account name=%s\n", __FUNCTION__, tny_account_get_name (TNY_ACCOUNT(account)));
+
        ModestFolderView *self = MODEST_FOLDER_VIEW (user_data);
        
        /* If this has been called then it means that the account name has 
@@ -772,7 +774,13 @@ modest_folder_view_on_map (ModestFolderView *self,
        /* This won't happen often */
        if (G_UNLIKELY (priv->reselect)) {
                /* Select the first inbox or the local account if not found */
-               modest_folder_view_select_first_inbox_or_local (self);
+
+               /* TODO: this could cause a lock at startup, so we
+                  comment it for the moment. We know that this will
+                  be a bug, because the INBOX is not selected, but we
+                  need to rewrite some parts of Modest to avoid the
+                  deathlock situation */
+/*             modest_folder_view_select_first_inbox_or_local (self); */
                priv->reselect = FALSE;
        }
        return FALSE;