summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-04-02 19:06:26 +0200
committermatgic78 <matgic78@gmail.com>2010-04-05 11:28:01 +0200
commitb4f7463d6f4c760d4bab84fd3b4c8ac71b228ae3 (patch)
treed3f9b5bf86e9da0582fc5ba38b8e31f03bf2976e
parentThis commit is the first implementation of a new new new urlbar (diff)
downloadrekonq-b4f7463d6f4c760d4bab84fd3b4c8ac71b228ae3.tar.xz
Clear downloads in "clear private data" dialog
-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");