kdelibs/kdelibs-3.5.0-101956.patch
Rex Dieter d88d9d16f5 * Thu May 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.6-5
- %changelog: prune pre-kde3 entries
- %ghost %{_datadir}/services/ksycoca
- omit extraneous .la file references (#178733)
- BR: jasper-devel OpenEXR-devel
- xdg-menu compat symlinks (to help transition to using XDG_MENU_PREFIX)
- fix kde#126812.patch to be non-empty
- cleanup kde.(sh|csh)
- Requires: +kde-settings -redhat-artwork
- make apidocs build optional (default on)
- use FHS-friendly /etc/kde (#238136)
2007-05-15 18:58:25 +00:00

33 lines
971 B
Diff

--- kdelibs-3.5.0/kioslave/http/http.cc.101956 2005-11-08 16:39:17.000000000 -0600
+++ kdelibs-3.5.0/kioslave/http/http.cc 2005-12-01 13:23:39.000000000 -0600
@@ -2103,6 +2103,8 @@
return false;
}
+ bool bCacheOnly = (m_request.cache == KIO::CC_CacheOnly);
+
m_request.fcache = 0;
m_request.bCachedRead = false;
m_request.bCachedWrite = false;
@@ -2114,7 +2116,6 @@
{
m_request.fcache = checkCacheEntry( );
- bool bCacheOnly = (m_request.cache == KIO::CC_CacheOnly);
bool bOffline = isOffline(m_request.doProxy ? m_proxyURL : m_request.url);
if (bOffline && (m_request.cache != KIO::CC_Reload))
m_request.cache = KIO::CC_CacheOnly;
@@ -2156,6 +2157,12 @@
return false;
}
}
+ else if (bCacheOnly)
+ {
+ // Instructed to only check cache, but _not_ to use cache. Oops.
+ error( ERR_DOES_NOT_EXIST, m_request.url.url() );
+ return false;
+ }
QString header;
QString davHeader;