From kde-commits Tue Mar 25 19:51:40 2003 From: Martijn Klingens Date: Tue, 25 Mar 2003 19:51:40 +0000 To: kde-commits Subject: kdenonbeta/kopete/libkopete/ui X-MARC-Message: https://marc.info/?l=kde-commits&m=104862192704451 CVS commit by mklingens: Make the KJanusWidget crash fix conditional; add some more docs on the subject. Thanks to CCMAIL: Ravikiran Rajagopal for the explanation. M +9 -2 configmodule.cpp 1.14 --- kdenonbeta/kopete/libkopete/ui/configmodule.cpp #1.13:1.14 @@ -55,7 +55,14 @@ ConfigModule::ConfigModule(const QString ConfigModule::~ConfigModule() { - // TODO When kdialogbase is fixed, delete the parent QFrame, and - // all traces of the related page +#if (QT_VERSION>=0x030005 && QT_VERSION<0x030102) && KDE_VERSION<0x0302000 + // Due to a bug in Qt 3.1 and 3.1.1 no close events are sent to hidden + // widgets, causing the KJanusWidget to crash. This workaround is + // rather intrusive and should be used only in the affected versions + // to avoid hard to track bugs in the future. KDE HEAD (to become 3.2) + // has a workaround for this problem, and additionally it's fixed in + // Qt 3.1.2. kapp->sendPostedEvents(); +#endif + PreferencesDialog::preferencesDialog()->remove(this); }