summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebenginehistory.cpp
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2014-04-01 13:57:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-03 21:52:13 +0200
commitb8403fa43730401e9d2ff378ff2c084373991cc3 (patch)
tree2ccf310e963a10de0f599588b54ef6c91c4e7f65 /src/webengine/api/qquickwebenginehistory.cpp
parent393692f7bca587d0d97eecb45b5a65f2bf5cac7d (diff)
Fix reseting of the quick history list model
With this fix the quick history list is updated like in the widget API. Change-Id: I19127a0055a3f1ab8a04da63d847249f6c4c23d9 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginehistory.cpp')
-rw-r--r--src/webengine/api/qquickwebenginehistory.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/webengine/api/qquickwebenginehistory.cpp b/src/webengine/api/qquickwebenginehistory.cpp
index 184b7079d..07ab78105 100644
--- a/src/webengine/api/qquickwebenginehistory.cpp
+++ b/src/webengine/api/qquickwebenginehistory.cpp
@@ -178,13 +178,9 @@ QQuickWebEngineHistoryListModel *QQuickWebEngineHistory::forwardItems() const
return d->m_forwardNavigationModel.data();
}
-void QQuickWebEngineHistory::reset(QQuickWebEngineLoadRequest *loadRequest)
+void QQuickWebEngineHistory::reset()
{
Q_D(QQuickWebEngineHistory);
-
- if (loadRequest->status() != QQuickWebEngineView::LoadSucceededStatus)
- return;
-
d->m_backNavigationModel->reset();
d->m_forwardNavigationModel->reset();
}