X-Git-Url: http://git.maemo.org/git/?p=quicknewsreader;a=blobdiff_plain;f=qml%2FQuickNewsReader%2Fcontent%2Fview%2FNewsDetail.qml;h=22f60a1a773b966e75f23a01caff1b22a9a6d170;hp=049de6593f3ef24490bd75d3fb6460a7418d6ad9;hb=d01d157c4f2340a8e52a891209159d1ad0b0f6cc;hpb=f60fe85fee497f7865a28a43797d6867c8cc401e diff --git a/qml/QuickNewsReader/content/view/NewsDetail.qml b/qml/QuickNewsReader/content/view/NewsDetail.qml index 049de65..22f60a1 100644 --- a/qml/QuickNewsReader/content/view/NewsDetail.qml +++ b/qml/QuickNewsReader/content/view/NewsDetail.qml @@ -9,9 +9,10 @@ Item { { var newsIndex = listSourceModel[window.currentSourceIndex].currentPath[componentDepth-1] - if( typeof currentSource.listModels[componentDepth-1].get(newsIndex) != "undefined" ) - if( typeof currentSource.listModels[componentDepth-1].get(newsIndex)[prop] != "undefined" ) - return currentSource.listModels[componentDepth-1].get(newsIndex)[prop] + if( typeof currentSource.listModels[componentDepth-1] != "undefined" ) + if( typeof currentSource.listModels[componentDepth-1].get(newsIndex) != "undefined" ) + if( typeof currentSource.listModels[componentDepth-1].get(newsIndex)[prop] != "undefined" ) + return currentSource.listModels[componentDepth-1].get(newsIndex)[prop] return "" }