Changeset 6267

Show
Ignore:
Timestamp:
06/11/08 11:01:43 (4 months ago)
Author:
eugene
Message:

I have misinterpreted bool notification flag at first...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt4-gui_group/src/dialogs/adduserdlg.cpp

    r6266 r6267  
    9696  unsigned short group = myGroup->currentGroupId(); 
    9797  bool notify = myNotify->isChecked(); 
     98  bool added = false; 
    9899 
    99100  if (!id.isEmpty()) 
     
    105106      unsigned short currentNewGroup = gUserManager.NewUserGroup(); 
    106107      gUserManager.SetNewUserGroup(group); 
    107       gLicqDaemon->AddUserToList(id, ppid, notify); 
     108      added = gLicqDaemon->AddUserToList(id, ppid); 
    108109      gUserManager.SetNewUserGroup(currentNewGroup); 
    109110    } 
     
    115116        gUserManager.DropUser(u); 
    116117        gUserManager.AddUserToGroup(id, ppid, group); 
    117         if (notify && ppid == LICQ_PPID) 
    118           gLicqDaemon->icqAlertUser(id.toULong()); 
     118        added = true; 
    119119      } 
    120120      else 
     
    123123  } 
    124124 
     125  if (added && notify && ppid == LICQ_PPID) 
     126    gLicqDaemon->icqAlertUser(id.toULong()); 
     127 
    125128  close(); 
    126129}