summaryrefslogtreecommitdiff
path: root/src/history
diff options
context:
space:
mode:
Diffstat (limited to 'src/history')
-rw-r--r--src/history/historymanager.cpp12
-rw-r--r--src/history/historymanager.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp
index 2b84ddc8..2fab9cf1 100644
--- a/src/history/historymanager.cpp
+++ b/src/history/historymanager.cpp
@@ -244,6 +244,18 @@ void HistoryManager::removeHistoryEntry(const KUrl &url, const QString &title)
}
+void HistoryManager::removeHistoryLocationEntry(int value)
+{
+ if (value < 0)
+ return;
+
+ HistoryItem item = m_history.at(value);
+ m_lastSavedUrl.clear();
+ m_history.removeOne(item);
+ emit entryRemoved(item);
+}
+
+
QList<HistoryItem> HistoryManager::find(const QString &text)
{
QList<HistoryItem> list;
diff --git a/src/history/historymanager.h b/src/history/historymanager.h
index c1e9f1cd..a618c672 100644
--- a/src/history/historymanager.h
+++ b/src/history/historymanager.h
@@ -123,6 +123,7 @@ public:
bool historyContains(const QString &url) const;
void addHistoryEntry(const KUrl &url, const QString &title);
void removeHistoryEntry(const KUrl &url, const QString &title = QString());
+ void removeHistoryLocationEntry(int value);
QList<HistoryItem> find(const QString &text);