Changeset 6374 for trunk/qt4-gui/src/core/mainwin.cpp
- Timestamp:
- 07/01/08 06:31:24 (5 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/core/mainwin.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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);
