Skip to content
Permalink
Browse files

fix crash when application is closed while browser is still filling t…

…he tree
  • Loading branch information
jef-n committed Sep 18, 2015
1 parent 323d3ce commit 065bb10a692c6674c530f22b102070bf83678557
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsdataitem.cpp
@@ -388,7 +388,8 @@ QVector<QgsDataItem*> QgsDataItem::runCreateChildren( QgsDataItem* item )
if ( !child ) // should not happen
continue;
QgsDebugMsg( "moveToThread child " + child->path() );
child->moveToThread( QApplication::instance()->thread() ); // moves also children
if ( qApp )
child->moveToThread( qApp->thread() ); // moves also children
}
QgsDebugMsg( QString( "finished path %1: %2 children" ).arg( item->path() ).arg( children.size() ) );
return children;

0 comments on commit 065bb10

Please sign in to comment.
You can’t perform that action at this time.