Added listening on an extra signal
authorPhilip Van Hoof <philip@codeminded.be>
Wed, 20 Jun 2007 13:19:54 +0000 (13:19 +0000)
committerPhilip Van Hoof <philip@codeminded.be>
Wed, 20 Jun 2007 13:19:54 +0000 (13:19 +0000)
pmo-trunk-r2332

src/maemo/modest-main-window.c
src/widgets/modest-folder-view.c

index 438adde..8fd643c 100644 (file)
@@ -509,6 +509,8 @@ on_account_store_connecting_finished (TnyAccountStore *store, ModestMainWindow *
         * (without the check for >0 accounts, though that is not specified): */
 
        TnyDevice *device = tny_account_store_get_device (store);
         * (without the check for >0 accounts, though that is not specified): */
 
        TnyDevice *device = tny_account_store_get_device (store);
+
+       modest_folder_view_update_model (MODEST_FOLDER_VIEW (priv->folder_view), store);
        
        /* Check that we are really online.
         * This signal should not be emitted when we are not connected, 
        
        /* Check that we are really online.
         * This signal should not be emitted when we are not connected, 
@@ -1895,6 +1897,7 @@ refresh_account (const gchar *account_name)
                modest_ui_actions_do_send_receive_all (win);
        else
                modest_ui_actions_do_send_receive (account_name, win);
                modest_ui_actions_do_send_receive_all (win);
        else
                modest_ui_actions_do_send_receive (account_name, win);
+       
 }
 
 static void 
 }
 
 static void 
index c4b85e6..7686d8f 100644 (file)
@@ -628,6 +628,9 @@ modest_folder_view_set_account_store (TnyAccountStoreView *self, TnyAccountStore
                g_signal_connect (G_OBJECT(account_store), "accounts_reloaded",
                                  G_CALLBACK (on_accounts_reloaded), self);
 
                g_signal_connect (G_OBJECT(account_store), "accounts_reloaded",
                                  G_CALLBACK (on_accounts_reloaded), self);
 
+       g_signal_connect (G_OBJECT(account_store), "connecting_finished",
+                               G_CALLBACK (on_accounts_reloaded), self);
+
        on_accounts_reloaded (account_store, (gpointer ) self);
        
        g_object_unref (G_OBJECT (device));
        on_accounts_reloaded (account_store, (gpointer ) self);
        
        g_object_unref (G_OBJECT (device));