Review Request: Avoid QDBusConnection Qt warning message for each KUniqueApplication

Thiago Macieira thiago at kde.org
Sat Jan 14 21:36:44 GMT 2012


On Saturday, 14 de January de 2012 18.38.02, Martin Koller wrote:
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103699/
> -----------------------------------------------------------
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> All KUniqueApplications issue the warning
> QDBusConnection: session D-Bus connection created before QCoreApplication.
> Application may misbehave. when runngin with Qt-4.8.0 (qWarning in
> QDBusDefaultConnection ctor)
> 
> The patch avoids this by temporarily creating a QCoreApplication instance

If this is done before the fork, it's a REALLY BAD IDEA.

If it's done after the fork, why is the connection created this early? I might 
have written this code, but I certainly don't remember it anymore.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120114/f28da85a/attachment.sig>


More information about the kde-core-devel mailing list