Changeset 4675


Ignore:
Timestamp:
Dec 4, 2013 7:04:49 AM (10 years ago)
Author:
bennylp
Message:

Re #1708: fix so that deleted account does not register itself to the treeview again during unregistration

Location:
pjproject/branches/projects/pjsua2/pjsip-apps/src/pygui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/pygui/account.py

    r4671 r4675  
    5050                self.buddyList = [] 
    5151                self.chatList = [] 
     52                self.deleting = False 
    5253 
    5354        def findBuddy(self, uri): 
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/pygui/application.py

    r4671 r4675  
    138138 
    139139        def updateAccount(self, acc): 
     140                if acc.deleting: 
     141                        return  # ignore 
    140142                iid = str(acc.randId) 
    141143                text = acc.cfg.idUri 
     
    354356                        iid = str(acc.randId) 
    355357                        self.accList.remove(acc) 
     358                        acc.setRegistration(False) 
     359                        acc.deleting = True 
    356360                        del acc 
    357361                        self.tv.delete( (iid,) ) 
Note: See TracChangeset for help on using the changeset viewer.