summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cleardata.ui12
-rw-r--r--src/mainwindow.cpp7
2 files changed, 17 insertions, 2 deletions
diff --git a/src/cleardata.ui b/src/cleardata.ui
index b70d3b5a..7de7543f 100644
--- a/src/cleardata.ui
+++ b/src/cleardata.ui
@@ -24,7 +24,17 @@
<item>
<widget class="QCheckBox" name="clearHistory">
<property name="text">
- <string>History</string>
+ <string>Visited pages history</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="clearDownloads">
+ <property name="text">
+ <string>Downloads history</string>
</property>
<property name="checked">
<bool>true</bool>
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 85f14738..af26ef42 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1186,7 +1186,12 @@ void MainWindow::clearPrivateData()
{
Application::historyManager()->clear();
}
-
+
+ if(clearWidget.clearDownloads->isChecked())
+ {
+ Application::historyManager()->clearDownloadsHistory();
+ }
+
if(clearWidget.clearCookies->isChecked())
{
QDBusInterface kcookiejar("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer");