From db56c75da769d0c749371dc38a62143e21e9485e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 26 Jul 2009 12:51:56 +0200 Subject: Fixed clear private data Hopefully.. --- src/mainwindow.cpp | 3 ++- src/networkmanager.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ea9f1fea..3d5631e0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -973,7 +973,8 @@ void MainWindow::clearPrivateData() QWebSettings::clearIconDatabase(); } } - delete dialog; + // this let crash rekonq. +// delete dialog; } \ No newline at end of file diff --git a/src/networkmanager.cpp b/src/networkmanager.cpp index 3d6df204..ab974b60 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); } } -- cgit v1.2.1