Page is not reloaded in a KHTML part
Andras Mantia
amantia at kde.org
Wed Mar 10 08:54:10 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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();
Right now browserExtension() contains:
return static_cast<KParts::BrowserExtension *>(((KParts::ReadOnlyPart
*)m_htmlPart)->child( 0L, "KParts::BrowserExtension" ));
but I've tried to replace it with a
KParts::BrowserExtension extension(part);
part.setURLArgs(args)
and
KParts::BrowserExtension::childObject( part )->setURLArgs( args );
but without luck. The page is not reloaded, although it should, as the first
argument for args is true. For me it looks like a bug in BrowserExtension,
KHTMLPart or kio_http (although similar problems are visible for all
non-local protocols, but there for the second try it loads the updated file).
Do you have any idea what can I do to always get the updated file in the
preview?
Andras
- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFATteyTQdfac6L/08RAvVIAKCUOWrawTm2wm2+dI3ih1Tty3aN2gCg6L5z
j7PbGqHK4mFiBSiBppVd4Oo=
=Bh4u
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list