Changeset 6374 for trunk/qt4-gui/src/core
- Timestamp:
- 07/01/08 06:31:24 (5 months ago)
- Location:
- trunk/qt4-gui/src/core
- Files:
-
- 3 modified
-
licqgui.cpp (modified) (6 diffs)
-
mainwin.cpp (modified) (8 diffs)
-
systemmenu.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/licqgui.cpp
r6352 r6374 694 694 if (o->StatusOffline()) 695 695 { 696 gUserManager.DropOwner( ppid);696 gUserManager.DropOwner(o); 697 697 return; 698 698 } … … 712 712 713 713 bool b = o->StatusOffline(); 714 gUserManager.DropOwner( ppid);714 gUserManager.DropOwner(o); 715 715 if (b) 716 716 myLicqDaemon->ProtoLogon(ppid, status); … … 1162 1162 QString id = o->IdString(); 1163 1163 unsigned short nNumMsg = o->NewMessages(); 1164 gUserManager.DropOwner( (*_ppit)->PPID());1164 gUserManager.DropOwner(o); 1165 1165 1166 1166 if (nNumMsg > 0) … … 1187 1187 continue; 1188 1188 unsigned short nNumMsg = o->NewMessages(); 1189 gUserManager.DropOwner( (*_ppit)->PPID());1189 gUserManager.DropOwner(o); 1190 1190 if (nNumMsg > 0) 1191 1191 { … … 1265 1265 1266 1266 // Do system messages first 1267 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);1267 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 1268 1268 unsigned short numMsg = 0; 1269 1269 if (o != NULL) 1270 1270 { 1271 1271 numMsg = o->NewMessages(); 1272 gUserManager.DropOwner( );1272 gUserManager.DropOwner(o); 1273 1273 } 1274 1274 … … 1447 1447 break; 1448 1448 } 1449 gUserManager.DropOwner( ppid);1449 gUserManager.DropOwner(o); 1450 1450 } 1451 1451 -
trunk/qt4-gui/src/core/mainwin.cpp
r6332 r6374 129 129 130 130 myCaption = "Licq"; 131 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);131 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 132 132 if (o != NULL) 133 133 { 134 134 myCaption += QString(" (%1)").arg(QString::fromUtf8(o->GetAlias())); 135 gUserManager.DropOwner( );135 gUserManager.DropOwner(o); 136 136 } 137 137 setWindowTitle(myCaption); … … 242 242 { 243 243 // Do we need to get a password 244 o = gUserManager.FetchOwner(L OCK_R);244 o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 245 245 if (o != NULL) 246 246 { 247 247 if (o->Password()[0] == '\0') 248 248 { 249 gUserManager.DropOwner( );249 gUserManager.DropOwner(o); 250 250 new UserSelectDlg(); 251 251 } 252 252 else 253 gUserManager.DropOwner( );253 gUserManager.DropOwner(o); 254 254 } 255 255 } … … 619 619 { 620 620 myCaption.replace("|", QString::fromUtf8(o->GetAlias())); 621 gUserManager.DropOwner( ppid);621 gUserManager.DropOwner(o); 622 622 } 623 623 else … … 851 851 o->IdString(), o->PPID())); 852 852 myStatusField->update(); 853 gUserManager.DropOwner(o); 853 854 } 854 855 else 855 856 { 856 gUserManager.DropOwner( nPPID);857 gUserManager.DropOwner(o); 857 858 858 859 // Show icons for each protocol, w/o text … … 868 869 continue; 869 870 myStatusField->addPixmap(iconman->iconForStatus(o->StatusFull(), o->IdString(), ppid)); 870 gUserManager.DropOwner( ppid);871 gUserManager.DropOwner(o); 871 872 } 872 873 FOR_EACH_PROTO_PLUGIN_END 873 874 874 875 myStatusField->update(); 875 876 o = gUserManager.FetchOwner(nPPID, LOCK_R);877 876 } 878 879 gUserManager.DropOwner(nPPID);880 877 } 881 878 else … … 892 889 continue; 893 890 myStatusField->addPixmap(iconman->iconForStatus(o->StatusFull(), o->IdString(), ppid)); 894 gUserManager.DropOwner( ppid);891 gUserManager.DropOwner(o); 895 892 } 896 893 FOR_EACH_PROTO_PLUGIN_END … … 911 908 { 912 909 //TODO iterate all owners that support fetching away message 913 ICQOwner* o = gUserManager.FetchOwner(L OCK_R);910 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 914 911 915 912 if (o == NULL) … … 917 914 918 915 int status = o->Status(); 919 gUserManager.DropOwner( );916 gUserManager.DropOwner(o); 920 917 921 918 AwayMsgDlg::showAwayMsgDlg(status); -
trunk/qt4-gui/src/core/systemmenu.cpp
r6352 r6374 384 384 a->setChecked(true); 385 385 386 gUserManager.DropOwner( );386 gUserManager.DropOwner(o); 387 387 } 388 388 … … 670 670 myStatusInvisibleAction->setChecked(o->StatusInvisible()); 671 671 672 gUserManager.DropOwner( myPpid);672 gUserManager.DropOwner(o); 673 673 } 674 674 … … 680 680 681 681 QString userid = o->IdString(); 682 gUserManager.DropOwner( myPpid);682 gUserManager.DropOwner(o); 683 683 LicqGui::instance()->showInfoDialog(mnuUserGeneral, userid, myPpid); 684 684 } … … 691 691 692 692 QString userid = o->IdString(); 693 gUserManager.DropOwner( myPpid);693 gUserManager.DropOwner(o); 694 694 new HistoryDlg(userid, myPpid); 695 695 }
