added previews next

This commit is contained in:
Jeena 2015-02-03 19:50:05 +01:00
parent ee6ba89ab4
commit 218f556a98
6 changed files with 40 additions and 15 deletions

View file

@ -16,7 +16,9 @@ ScrollView {
property Post post: content.post
function setPost() {
experimental.evaluateJavaScript("setArticle(" + post.jsonString + ")")
if(post) {
experimental.evaluateJavaScript("setArticle(" + post.jsonString + ")")
}
}
// Enable communication between QML and WebKit
@ -31,12 +33,7 @@ ScrollView {
}
}
onLoadingChanged: {
setPost()
}
onPostChanged: {
setPost();
}
onLoadingChanged: setPost()
onPostChanged: setPost()
}
}