[Panel-devel] Small fix for DataEngine

Michael Olbrich michael-olbrich at web.de
Mon Jul 30 00:58:08 CEST 2007


Hi,

QMetaObject::invokeMethod is called incorrectly in
DataEngine::connectSource / DataEngine::connectAllSources

also: If a DataEngine fails to create the source in
sourceRequested(source), an empty source is created in d->source(source)
and then used during QMetaObject::invokeMethod, which calls updated for
the applet.
Better: don't create the source. This forces DataEngines to create the
source.

Patch for both issues attached.

michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dataengine.patch
Type: text/x-diff
Size: 1457 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070730/69767a6d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070730/69767a6d/attachment.pgp 


More information about the Panel-devel mailing list