Skip to content
  • Hugo Lefeuvre's avatar
    newaccountmodel: stop using old lrc for accountsChanged signal · 6dff5ee3
    Hugo Lefeuvre authored and Andreas Traczyk's avatar Andreas Traczyk committed
    
    
    Add a CallbackHandler entry for deamon signal accountsChanged.
    
    Add an updateAccounts() function to the NewAccountModel and connect it
    to this new signal. This function detects new accounts and account
    removals. It calls addToAccounts and removeFromAccounts (formerly
    slotAccountRemoved) when appropriate.
    
    Stop using registrationStateChanged signal to detect new accounts.
    
    Fix various race conditions and potential errors during account
    creation and removal.
    
    Change-Id: Id774df852e63b69658160473962ec499fc244c53
    Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
    6dff5ee3