diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-07-27 11:14:47 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-07-27 11:14:47 +0200 |
commit | 98202c39c496f6429b896e2bf8db84773c8dc07f (patch) | |
tree | b00310fa4a5b8791d79654502c2bf7574ef67562 /src | |
parent | Merge commit 'megabigbug/ClearPrivateData' (diff) | |
download | rekonq-98202c39c496f6429b896e2bf8db84773c8dc07f.tar.xz |
Fixing reset disk cache crash
Diffstat (limited to 'src')
-rw-r--r-- | src/networkmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/networkmanager.cpp b/src/networkmanager.cpp index ab974b60..3d6df204 100644 --- a/src/networkmanager.cpp +++ b/src/networkmanager.cpp @@ -112,8 +112,8 @@ void NetworkAccessManager::resetDiskCache() else { QString location = m_diskCache->cacheDirectory(); - setCache(0); - delete m_diskCache; +// setCache(0); +// delete m_diskCache; QDir cacheDir(location + QString("/http") ); QStringList fileList = cacheDir.entryList(); @@ -123,9 +123,9 @@ void NetworkAccessManager::resetDiskCache() file.remove(); } - m_diskCache = new QNetworkDiskCache(this); - m_diskCache->setCacheDirectory(location); - setCache(m_diskCache); +// m_diskCache = new QNetworkDiskCache(this); +// m_diskCache->setCacheDirectory(location); +// setCache(m_diskCache); } } |