aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-03-08 11:27:05 +0100
committerDominik Holland <dominik.holland@pelagicore.com>2017-03-08 10:46:40 +0000
commit93c0e50824fb378f538650188794de8f712e1d5a (patch)
tree50fe57372c7032f03c9dd1a1292fd7d22935b87e
parente77e8a55e6ef764873cca4c7712fe73b58ad1961 (diff)
Reset the canGoBack state when updating the contentType
Change-Id: I11fbd7bc60ab7bbf990910c2f156139d1aefad47 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r--src/ivicore/qivisearchandbrowsemodel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ivicore/qivisearchandbrowsemodel.cpp b/src/ivicore/qivisearchandbrowsemodel.cpp
index ec0c50c..d7f0f1f 100644
--- a/src/ivicore/qivisearchandbrowsemodel.cpp
+++ b/src/ivicore/qivisearchandbrowsemodel.cpp
@@ -658,10 +658,7 @@ void QIviSearchAndBrowseModel::setContentType(const QString &contentType)
if (d->m_contentType == contentType)
return;
- d->m_contentType = contentType;
- d->resetModel();
-
- emit contentTypeChanged(contentType);
+ d->updateContentType(contentType);
}
/*!