From 3038503f6ffc2d58b00650d5feae23cc8e842bcb Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 03 Sep 2003 18:58:20 +0000 Subject: Failure free restart of the launcher and a comment why we do that --- (limited to 'core/launcher/systray.cpp') diff --git a/core/launcher/systray.cpp b/core/launcher/systray.cpp index 64356ca..6122770 100644 --- a/core/launcher/systray.cpp +++ b/core/launcher/systray.cpp @@ -69,6 +69,14 @@ void SysTray::clearApplets() { #ifndef QT_NO_COMPONENTS + /* + * Note on clearing. SOme applets delete their + * applets themselves some don't do it + * and on restart this can crash. If we delete it + * here we might end up in a double deletion. We could + * use QGuardedPtr but that would be one QOBject + * for every applet more but only useful for restart + */ QValueList::Iterator mit; for ( mit = appletList.begin(); mit != appletList.end(); ++mit ) { (*mit).iface->release(); -- cgit v0.9.0.2