ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src edit_local_accounts.c,1.9,1.10


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src edit_local_accounts.c,1.9,1.10
Date: Wed, 26 Mar 2003 04:34:45 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv4801/src

Modified Files:
        edit_local_accounts.c 
Log Message:
logout before modifying


Index: edit_local_accounts.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/edit_local_accounts.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- edit_local_accounts.c       24 Mar 2003 10:09:07 -0000      1.9
+++ edit_local_accounts.c       26 Mar 2003 09:34:43 -0000      1.10
@@ -227,8 +227,9 @@
        int id;
        gboolean had_accounts=(accounts != NULL);
        LList *pairs=NULL;
-       LList *existing_accounts = NULL, *new_accounts = NULL, *acc_walk = 
NULL, *to_remove = NULL;
-       eb_local_account *ela=NULL;
+       LList *existing_accounts = NULL, *new_accounts = NULL, 
+             *acc_walk = NULL, *to_remove = NULL;
+       eb_local_account *ela = NULL;
 
        if (gtk_entry_get_text(GTK_ENTRY(username)) != NULL
        &&  strlen(gtk_entry_get_text(GTK_ENTRY(username))) > 0) {
@@ -244,13 +245,16 @@
                return;
        }
        
+       eb_sign_off_all();
+       
        for (i = 0; i < num_accounts; i++) {
                gtk_clist_get_text(GTK_CLIST(account_list), i, SERVICE_TYPE, 
&service); 
                gtk_clist_get_text(GTK_CLIST(account_list), i, USER_NAME, 
&user); 
                gtk_clist_get_text(GTK_CLIST(account_list), i, PASSWORD, 
&pass); 
                id=get_service_id(service);
                if (accounts && (ela = find_local_account_by_handle(user, id))) 
{
-                       /* If the account exits, just update the password
+                       /* If the account exists, just 
+                         update the password and logout
                         */
                        LList * config = NULL;  
                        config = eb_services[id].sc->write_local_config(ela);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]