Index: sources/gui/qml/pages/settings/SettingsExportLogs.qml =================================================================== diff -u -r0536992850014cee0a949958ce56c0008615da41 -rddebf52c310dbd5359a9cd9751f842f7362fc48f --- sources/gui/qml/pages/settings/SettingsExportLogs.qml (.../SettingsExportLogs.qml) (revision 0536992850014cee0a949958ce56c0008615da41) +++ sources/gui/qml/pages/settings/SettingsExportLogs.qml (.../SettingsExportLogs.qml) (revision ddebf52c310dbd5359a9cd9751f842f7362fc48f) @@ -107,6 +107,12 @@ refreshModels() } + onVisibleChanged: { + if ( _root.visible ) { + updatePanels( _logTypeCombo.currentIndex ) + } + } + property bool isUpdatePanels: false function updatePanels (vIndex) { isUpdatePanels = true @@ -321,7 +327,7 @@ height : parent.height anchors.verticalCenter : parent.verticalCenter Label { id : _sdcLabel - text : _root.sdcLabel + ": %1 files"/*, %2 %3"*/.arg(_sdcFolderView.visibleFileCounter) + (_GuiView.exportCount ? " [Selected: %1]".arg(_GuiView.exportCount ) : "") //.arg("__").arg(_root.dvcUnit) + text : _root.sdcLabel + ": %1 files"/*, %2 %3"*/.arg(_sdcFolderModel.count) + (_GuiView.exportCount ? " [Selected: %1]".arg(_GuiView.exportCount ) : "") //.arg("__").arg(_root.dvcUnit) width : parent.width height : _root.headetRowHight verticalAlignment : Text.AlignVCenter @@ -341,7 +347,6 @@ } ListView { id : _sdcFolderView - property int visibleFileCounter : 0 enabled : !_GuiView.exportRunning && ! isUpdatePanels clip : true anchors.fill : parent @@ -350,14 +355,6 @@ anchors.rightMargin : 5 spacing : 3 FolderListModel { id : _sdcFolderModel - onStatusChanged: { - // onFolderChanged does not get emitted when switching folders, but status change does. - // Reset the displayed file counter when the state of the model is null - if (_sdcFolderModel.status == FolderListModel.Null) - { - _sdcFolderView.visibleFileCounter = 0 - } - } showDirs : false sortField : FolderListModel.Time folder : _sdcFolderColumn.currentTypeFolderApplication // FIXME: there has to be a View for this which also get changed by log type. @@ -377,7 +374,6 @@ onExportPercentChanged : console.log( "%", exportPercent) property bool isShownInList : ! _GuiView.isPathSymLink(_sdcFolderColumn.currentTypeFolderApplication.replace(typePathPrefix, "") + "/" + fileName) - Component.onCompleted: if ( isShownInList ) _sdcFolderView.visibleFileCounter++ //DEBUG: onInExportListChanged: console.debug(" * ", index, inExportList) function exportListUpdate() {