Changeset 6381 for trunk/qt-gui/src/ownermanagerdlg.cpp
- Timestamp:
- 07/01/08 17:03:38 (5 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/ownermanagerdlg.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/ownermanagerdlg.cpp
r6187 r6381 87 87 cmbProtocol->insertItem((*it)->Name(), n++); 88 88 else 89 gUserManager.DropOwner( (*it)->PPID());89 gUserManager.DropOwner(o); 90 90 } 91 91 } 92 92 93 93 // Set the fields 94 94 if (szId && nPPID) … … 99 99 { 100 100 edtPassword->setText(o->Password()); 101 gUserManager.DropOwner( nPPID);101 gUserManager.DropOwner(o); 102 102 } 103 103 104 104 n = 0; 105 105 for (it = pl.begin(); it != pl.end(); it++, n++) … … 188 188 o->SetPassword(szPassword); 189 189 } 190 191 gUserManager.DropOwner( nPPID);190 191 gUserManager.DropOwner(o); 192 192 server->SaveConf(); 193 193 194 194 close(); 195 195 } … … 333 333 void OwnerManagerDlg::slot_registerClicked() 334 334 { 335 if ( gUserManager.OwnerUin() != 0)335 if (!gUserManager.OwnerId(LICQ_PPID).empty()) 336 336 { 337 337 QString buf = tr("You are currently registered as\n" … … 340 340 "Rerun licq with the -b option to select a new\n" 341 341 "base directory and then register a new user.") 342 .arg(gUserManager.Owner Uin()).arg(BASE_DIR);342 .arg(gUserManager.OwnerId(LICQ_PPID).c_str()).arg(BASE_DIR); 343 343 InformUser(this, buf); 344 344 return; … … 376 376 updateOwners(); 377 377 378 char sz[20];379 378 //TODO which owner 380 sprintf(sz, "%lu", gUserManager.OwnerUin());379 QString id = gUserManager.OwnerId(LICQ_PPID); 381 380 InformUser(this, tr("Successfully registered, your user identification\n" 382 381 "number (UIN) is %1.\n" 383 "Now set your personal information.").arg( gUserManager.OwnerUin()));384 mainwin->callInfoTab(mnuUserGeneral, sz, LICQ_PPID);382 "Now set your personal information.").arg(id)); 383 mainwin->callInfoTab(mnuUserGeneral, id, LICQ_PPID); 385 384 } 386 385 else
