KHTML error dialogues.

Tobias Anton TA at ESC-Electronics.de
Wed Aug 25 09:37:53 BST 2004


On Dienstag, 24. August 2004 12:17, Michael A. Borisov wrote:
> Hi,
>
> Is it possible to disable KHTML error dialogue windows? For example when
> URL can not be retrieved,etc.?
> I thought it is possible with the help of KHTMLPart::htmlError method
> but it is not virtual.

It should be virtual, but it seems it was forgotten to be declared virtual 
before the 3.0 release went out.

If you need a binary compatible solution based on KDE 3, you'll have to catch 
KIO errors by overriding the method
	virtual void KHTMLPart::showError(KIO::Job *job);
and prevent htmlError() from being called within
	virtual bool KHTMLPart::openURL(const KURL &);
by overriding that method, too.

(see the source file khtml_part.cpp for details)

Cheers
-- Tobias




More information about the kfm-devel mailing list