DirectoryContentsList clears before refreshing

DirectoryContentsList::refresh() starts by a clear() call. When the directory content is refreshed quickly, it has no impact, but when it takes time the FileListComponent receives first a change message with an empty directory contents, and then another change message with the actual directory content. This causes a graphical flickering, and the lost of the current selection.

Solution: replace the call to ‘clear()’ by ‘stopSearching(); files.clear();’

1 Like

Thank you. I’ll sort this out…