summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-04-19 11:55:13 +0200
committermatgic78 <matgic78@gmail.com>2010-04-19 11:55:13 +0200
commitedda4a325583f466187bb9f7694fe58cf5428f68 (patch)
tree50dfb663053ad6dce552e701aee4ade365072666
parentMerge commit 'refs/merge-requests/2244' of git://gitorious.org/rekonq/mainline (diff)
downloadrekonq-edda4a325583f466187bb9f7694fe58cf5428f68.tar.xz
Fix Clear Private Data dialog
- Don't use the value returned by QDialog::exec(), it looks like it is buggy - Add cache cleaning, solution found in konqueror/settings/kio/cache.cpp
-rw-r--r--src/mainwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3c8874e1..cb90f818 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -71,6 +71,7 @@
#include <KToggleAction>
#include <KStandardDirs>
#include <KActionCategory>
+#include <KProcess>
// Qt Includes
#include <QtCore/QTimer>
@@ -1183,8 +1184,9 @@ void MainWindow::clearPrivateData()
clearWidget.setupUi(&widget);
dialog->setMainWidget(&widget);
+ dialog->exec();
- if (dialog->exec() == KDialog::Ok)
+ if (dialog->result() == QDialog::Accepted)
{
if(clearWidget.clearHistory->isChecked())
{
@@ -1204,7 +1206,8 @@ void MainWindow::clearPrivateData()
if(clearWidget.clearCachedPages->isChecked())
{
- // TODO implement me!
+ KProcess::startDetached(KStandardDirs::findExe("kio_http_cache_cleaner"),
+ QStringList(QLatin1String("--clear-all")));
}
if(clearWidget.clearWebIcons->isChecked())