mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
I think this prevents a potential crash.
This commit is contained in:
@@ -26,11 +26,9 @@ FileSystemModel::Node::Node( const std::string& rootPath, FileSystemModel& model
|
||||
if ( threadPool ) {
|
||||
mQueuedForTraversal = true;
|
||||
threadPool->run( [this, &model]() {
|
||||
auto rowCount = model.rowCount();
|
||||
traverseIfNeeded( model );
|
||||
model.refreshView();
|
||||
if ( rowCount != model.rowCount() )
|
||||
model.invalidate( Model::DontInvalidateIndexes );
|
||||
model.invalidate( Model::DontInvalidateIndexes );
|
||||
} );
|
||||
} else {
|
||||
traverseIfNeeded( model );
|
||||
|
||||
Reference in New Issue
Block a user