Model-View-Delegate Problem

  • Hello everyone,
    I was extending the Photo Albums viewer recently, by making the app loads the images from local machine, I replaced the XmlListModel with FolderListModel, and set the folder property like this
    model: FilesModel { id: rssModel; folder: mainWindow.getFolderUrl()}
    where getFolderUrl(), is a method the returns fileDialog.fileUrl+"/"

    The main problem is when I load new folder, it makes all albums points to the same url.