[Issue N6304] Bug in QEventLoop in Qt3.1beta

qt-bugs at trolltech.com qt-bugs at trolltech.com
Wed Sep 11 15:42:48 BST 2002


On Tuesday, 10 Sep 2002 19:40 Lubos Lunak wrote:
>  Hello,

Hello Lubos,

> if QApplication::eventLoop() is referenced before QApplication is
> created (e.g. when creating a QSocketNotifier, as in kded when fam
> daemon is running or dnotify support is enabled), it doesn't add the
> X11 connection fd to the list of watched fd's (because there's no
> QApplication instance at that time). Later this causes crash when
> qt_gui_is_used becomes true but d->xfd is still -1.
>
> The attached patch should fix the problem. You'll also have to do
> something with QEventLoop::appStartingUp() in qeventloop.cpp .

This is indeed a bug.  Your patch looks very correct, and I will apply
it for beta2.

Thanks :)

> --
> Lubos Lunak
> KDE developer
> ---------------------------------------------------------------------
> SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
> Drahobejlova 27  tel: +420 2 9654 2373
> 190 00 Praha 9   fax: +420 2 9654 2374
> Czech Republic   http://www.suse.cz/
>
>

--
Bradley T Hughes
Trolltech AS, Waldemar Thranes gt. 98, N-0175 Oslo, Norway
 




More information about the kde-core-devel mailing list