Issue 2406: Order the parallel thumbnail loading so it thumbs appear gradually in order, and don't use too many threads (to avoid long stalls).

This commit is contained in:
torger
2014-08-26 09:39:04 +02:00
parent e8cd69ad2c
commit fdbe5d793a
2 changed files with 36 additions and 4 deletions

View File

@@ -475,6 +475,7 @@ std::vector<Glib::ustring> FileCatalog::getFileList () {
std::vector<Glib::ustring> names;
Glib::RefPtr<Gio::File> dir = Gio::File::create_for_path (selectedDirectory);
safe_build_file_list (dir, names, selectedDirectory, &(options.parsedExtensions));
std::sort (names.begin(), names.end());
return names;
}