aboutsummaryrefslogtreecommitdiff
path: root/src/tabbrowsinghistory.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-01-11 19:08:48 +0100
committerFelix Queißner <felix@ib-queissner.de>2021-01-11 20:29:21 +0100
commit3a5b99104288d292dc3ab2935617268f335cd455 (patch)
tree46d85f3073cdfdc730add8b28262f40b8984e920 /src/tabbrowsinghistory.cpp
parentdb0202cc36512f30c7a20068834d37bf8e6490a3 (diff)
downloadkristall-3a5b99104288d292dc3ab2935617268f335cd455.tar.gz
Replace history on redirect
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())