Changeset 1754

Show
Ignore:
Timestamp:
03/28/07 22:47:34
Author:
pvanhoof
Message:

Bugfixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-olpc/tny-olpc-account-store.c

    r1713 r1754  
    171171 
    172172 
     173static void 
     174kill_stored_accounts (TnyOlpcAccountStorePriv *priv) 
     175{ 
     176        if (priv->accounts) 
     177        { 
     178                g_list_foreach (priv->accounts, (GFunc) g_object_unref, NULL); 
     179                g_list_free (priv->accounts); 
     180                priv->accounts = NULL; 
     181        } 
     182 
     183        return; 
     184} 
    173185 
    174186static void 
     
    268280                                tny_account_set_hostname (TNY_ACCOUNT (account), hostname); 
    269281 
    270                                 port = g_key_file_get_value (keyfile, "tinymail", "port", &err); 
    271                                 if (err != G_KEY_FILE_ERROR_KEY_NOT_FOUND
     282                                port = g_key_file_get_integer (keyfile, "tinymail", "port", &err); 
     283                                if (err == NULL
    272284                                        tny_account_set_port (TNY_ACCOUNT (account), port); 
    273285 
     
    360372 
    361373        if (!priv->accounts) 
    362                 load_accounts (priv); 
     374                load_accounts (self); 
    363375 
    364376        if (priv->accounts) 
     
    461473        return; 
    462474} 
     475 
    463476 
    464477