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

List:       kopete-devel
Subject:    Re: [Kopete-devel] Possible bug in plugin loading
From:       Olivier Goffart <ogoffart () tiscalinet ! be>
Date:       2003-09-29 13:08:26
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Lundi 29 Septembre 2003 07:42, Matt Rogers a écrit :
> Hi,
>
> Currently the yahoo plugin reimplements the loaded() slot in order to
> initialize some things like the actual session that will be used to
> connect, etc.  However, if you load the plugin first, and then add an
> account, the loaded signal doesn't get caught, and things don't get
> initialized properly, causing crashes.
>
> I've thought of several hacks that could be used, but i'd like some more
> time to prepare them before I present them to everybody. Also, if you think
> you might have a way to fix this, please speak up. I'm all ears.

You need to initialize all theses stuff in the plugin constructor.
in loaded() you only need to initialize what is using pluginData().

You can initialize stuff in the constructor, in loaded, or in 
EditAccountPage::apply()  you even can call loaded() in the EditAccountPage 
if you want.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/eC7Kz58lY8jWrL0RAv42AJ4holqMt5i8Qz0tDBQ9jtSVOhuHXgCghe5G
kqJRXKd87IqIWwVkdW856eg=
=q/jG
-----END PGP SIGNATURE-----
_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel

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

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