[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 50207] Auto-connect for AIM doesn't work properly
From:       Martijn Klingens <klingens () kde ! org>
Date:       2002-12-31 15:45:30
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=50207     
klingens@kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From klingens@kde.org  2002-12-31 16:45 -------
Subject: kdenonbeta/kopete/protocols/aim

CVS commit by mklingens: 

Fix autoconnect:

// AIM depends on properly deserialized meta contacts to be able to
// connect, but the deserializing is done after the constructor ends.
// Therefore use a 0-second timer instead, which is enough to make
// it work properly.

Also some small misc cleanups.

CCMAIL: 50207-done@bugs.kde.org


  M +1 -1      Makefile.am   1.16
  M +1 -10     aimcontact.h   1.37
  M +5 -1      aimprotocol.cpp   1.92
  R            aimdeleteevent.cpp   1.3
  R            aimdeleteevent.h   1.3
  R            aimmessage.cpp   1.24
  R            aimmessage.h   1.9


--- kdenonbeta/kopete/protocols/aim/Makefile.am  #1.15:1.16
@@ -13,5 +13,5 @@
 kopete_aim_la_SOURCES = aimprotocol.cpp \
     aimcontact.cpp aimchangestatus.cpp aimuserinfo.cpp \
-    aimpreferences.cpp aimdeleteevent.cpp
+    aimpreferences.cpp
 kopete_aim_la_LDFLAGS = -no-undefined -module $(KDE_PLUGIN) $(all_libraries)
 kopete_aim_la_LIBADD  = ./taim/libkopeteaimengine.la \

--- kdenonbeta/kopete/protocols/aim/aimcontact.h  #1.36:1.37
@@ -22,5 +22,4 @@
 
 #include "aim.h"
-#include "aimmessage.h"
 #include "kopetecontact.h"
 #include "kopetemessagemanager.h"
@@ -33,5 +32,4 @@ class KPopupMenu;
 class KActionCollection;
 
-class AIMMessage;
 class AIMProtocol;
 class KopeteMetaContact;
@@ -80,5 +78,4 @@ private:
         KActionCollection* actionCollection;
 
-        AIMMessage *messageBox;
         KPopupMenu *popup;
         QPtrList<KopeteContact> theContacts;
@@ -99,11 +96,5 @@ signals:
 
 #endif
-/*
- * Local variables:
- * c-indentation-style: k&r
- * c-basic-offset: 8
- * indent-tabs-mode: t
- * End:
- */
+
 // vim: set noet ts=4 sts=4 sw=4:
 

--- kdenonbeta/kopete/protocols/aim/aimprotocol.cpp  #1.91:1.92
@@ -97,7 +97,11 @@ AIMProtocol::AIMProtocol( QObject *paren
 
         // Autoconnect if is selected in config
+        // AIM depends on properly deserialized meta contacts to be able to
+        // connect, but the deserializing is done after the constructor ends.
+        // Therefore use a 0-second timer instead, which is enough to make
+        // it work properly.
         KGlobal::config()->setGroup("AIM");
         if( KGlobal::config()->readBoolEntry("AutoConnect", false ) )
-                connect();
+                QTimer::singleShot( 0, this, SLOT( connect() ) );
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic