Bug in QEventLoop in Qt3.1beta
Lubos Lunak
l.lunak at suse.cz
Tue Sep 10 18:40:14 BST 2002
Hello,
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 .
--
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qeventloop_x11.cpp.patch
Type: text/x-diff
Size: 818 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020910/08321e1c/attachment.patch>
More information about the kde-core-devel
mailing list