DirectoryContentsList clears before refreshing


#1

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();’


#2

Thank you. I’ll sort this out…