[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kopete/protocols/gadu
From: Grzegorz Jaskiewicz <gj () pointblue ! com ! pl>
Date: 2003-10-25 23:07:47
[Download RAW message or body]
CVS commit by gj:
work!
M +5 -6 gaducommands.cpp 1.38
--- kdenetwork/kopete/protocols/gadu/gaducommands.cpp #1.37:1.38
@@ -222,10 +222,6 @@ void RegisterCommand::watcher()
kdDebug( 14100 ) << "got Token!, ID: " << tokenId << \
endl; if ( gg_pub->success ) {
- QByteArray imgB( session_->body_size );
- for ( unsigned int i = 0; i < \
session_->body_size; i++ ) {
- imgB[i] = session_->body[i];
- }
tokenImg = new QPixmap;
- tokenImg->loadFromData( imgB );
+ tokenImg->loadFromData( (const \
unsigned char *)session_->body, session_->body_size ); state = \
RegisterStateGotToken;
emit tokenRecieved( *tokenImg, tokenId );
@@ -238,4 +234,5 @@ void RegisterCommand::watcher()
gg_token_free( session_ );
session_ = NULL;
+ disconnect( this, SLOT( watcher() ) );
return;
break;
@@ -273,6 +270,6 @@ void RegisterCommand::watcher()
if ( gg_pub->success ) {
uin= gg_pub->uin;
- emit done( i18n( "Registration Finished" ), \
i18n( "Registration has completed successfully." ) ); state = RegisterStateDone;
+ emit done( i18n( "Registration Finished" ), \
i18n( "Registration has completed successfully." ) ); }
else {
@@ -283,4 +280,6 @@ void RegisterCommand::watcher()
gg_free_register( session_ );
session_ = NULL;
+ disconnect( this, SLOT( watcher() ) );
+ deleteLater();
return;
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic