Patch: Crash: blocking JS alert and deleting a window

Dirk Mueller mueller at kde.org
Sat Oct 19 03:27:09 BST 2002


On Fre, 18 Okt 2002, Koos Vriezen wrote:

> +  QObjectList *dlgs = d->m_view->queryList("QDialog");
> +  for (QObject *dlg = dlgs->first(); dlg; dlg = dlgs->next())
> +    static_cast<QDialog*>(dlg)->close();
> +  delete dlgs;
> +
>    return true;
>  }
> 
> If no further comments, I'll commit the last patch.

Am I the only one who is scared like hell when I see such code ?

:-/

(not having debugged the problem myself of course)


-- 
Dirk (received 104 mails today)




More information about the kfm-devel mailing list