Changeset 6315 for trunk/qt4-gui/src/dialogs
- Timestamp:
- 06/16/08 09:26:35 (6 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/dialogs/adduserdlg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/dialogs/adduserdlg.cpp
r6313 r6315 99 99 if (!id.isEmpty()) 100 100 { 101 ICQUser* u = gUserManager.FetchUser(id, ppid, LOCK_ W);101 ICQUser* u = gUserManager.FetchUser(id, ppid, LOCK_R); 102 102 103 103 if (u == NULL) 104 added = gLicqDaemon->AddUserToList(id, ppid );104 added = gLicqDaemon->AddUserToList(id, ppid, true, false, group); 105 105 else 106 106 { 107 107 if (u->NotInList()) 108 108 { 109 u->Unlock(); 110 gUserManager.SetUserInGroup(id, ppid, GROUPS_USER, group, true, true); 111 u->Lock(LOCK_W); 109 112 u->SetPermanent(); 110 113 added = true; … … 114 117 } 115 118 116 if (added) 117 { 118 gUserManager.SetUserInGroup(id, ppid, GROUPS_USER, group, true, true); 119 if (notify && ppid == LICQ_PPID) 120 gLicqDaemon->icqAlertUser(id, ppid); 121 } 119 if (added && notify) 120 gLicqDaemon->icqAlertUser(id, ppid); 122 121 123 122 close();
