Major changes
[quicknewsreader] / qml / QuickNewsReader / content / view / SourceDelegate.qml
index dfb2880..913f49d 100644 (file)
@@ -73,6 +73,15 @@ Item {
 
     MouseArea {
         anchors.fill: delegate
+
+        onPressAndHold: {
+            // show the configuration for this journal
+            if( listSourceModel[index].hasSettings )
+            {
+                window.showConfigDialog(index)
+            }
+        }
+
         onClicked: {
             if( delegate.ListView.view.currentIndex !== index )
             {
@@ -82,12 +91,11 @@ Item {
 
                 delegate.ListView.view.currentIndex = index
 
+                listSourceModel[index].currentPath = [index]
+
                 window.windowViewsModel.append({ component: listSourceModel[index].listViews[0].viewComponent,
-                                                 componentId: listSourceModel[index].listViews[0].viewId,
                                                  componentDepth: 1 })
 
-                listSourceModel[window.currentSourceIndex].currentPath = [index]
-
                 window.currentSourceIndex = index
             }
         }