Page is not reloaded in a KHTML part

David Faure faure at kde.org
Wed Mar 10 09:04:27 GMT 2004


On Wednesday 10 March 2004 09:54, Andras Mantia wrote:
> Hi,
> 
>  We realized that if we are doing a preview in Quanta from a http:// place,
> the content of the preview is not updated, even if the file itself has
> changed. Turning off the cache in Konqueror's settings solves the problem.
> Now, this is something new, as it worked in the past. The code we are using
> is roughly:
>   WHTMLPart *part = m_htmlPart; //slightly extended KHTMLPart
>   part->closeURL();
>   KParts::URLArgs  args(true, browserExtension()->xOffset(),
> browserExtension()->yOffset());
>   browserExtension()->setURLArgs( args );
>   part->begin(url, xOffset, yOffset);
>   part->openURL(url);
>   part->end();
>   part->show();

Hmm? Why do you use begin/end if you use openURL?
I suggest dropping the begin and end.

> KParts::BrowserExtension::childObject( part )->setURLArgs( args );

That one looks correct.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list