Patch: Crash: blocking JS alert and deleting a window

David Faure david at mandrakesoft.com
Fri Oct 18 18:01:30 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 18 October 2002 18:55, Koos Vriezen wrote:
> +  QObjectList *dlgs = d->m_view->topLevelWidget()->queryList("QDialog");
> +  for (QObject *dlg = dlgs->first(); dlg; dlg = dlgs->next())
> +    static_cast<QDialog*>(dlg)->close();
> +  delete dlgs;
> +
>    return true;
>  }

Great, thanks for the testing.

But going up to the top-level-widget is too much, no?
Imagine a splitted Konqueror window, two HTML views, one shows a dialog,
the other one is aborted -> closeURL -> the dialog gets closed?

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9sD5q72KcVAmwbhARAnyzAJ90oSgLr7NGZVi11iqI030V60w7bwCfVUJL
2lfWZQZY4RNvoPM7zX1HtDI=
=jfwW
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list