aboutsummaryrefslogtreecommitdiff
path: root/src/tabbrowsinghistory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabbrowsinghistory.cpp')
-rw-r--r--src/tabbrowsinghistory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabbrowsinghistory.cpp b/src/tabbrowsinghistory.cpp
index 5f2cba4..5cb03ae 100644
--- a/src/tabbrowsinghistory.cpp
+++ b/src/tabbrowsinghistory.cpp
@@ -30,6 +30,11 @@ QModelIndex TabBrowsingHistory::pushUrl(QModelIndex const & position, const QUrl
return this->createIndex(this->history.size() - 1, 0);
}
+void TabBrowsingHistory::replaceUrl(size_t const position, QUrl const & url)
+{
+ this->history.replace(position, url);
+}
+
QUrl TabBrowsingHistory::get(const QModelIndex &index) const
{
if(not index.isValid())