Skip to content

Commit

Permalink
browser items parent (moving to thread) fix (crash when dragging post…
Browse files Browse the repository at this point in the history
…gres layer)
  • Loading branch information
blazek committed Dec 16, 2014
1 parent 79e1236 commit 9fbcc7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/core/qgsdataitem.cpp
Expand Up @@ -160,15 +160,14 @@ QgsDataItem::QgsDataItem( QgsDataItem::Type type, QgsDataItem* parent, QString n
: QObject()
, mType( type )
, mCapabilities( NoCapabilities )
, mParent( 0 ) // items are created without parent, parent is set later by setParent()
, mParent( parent )
, mState( NotPopulated )
, mPopulated( false )
, mName( name )
, mPath( path )
, mDeferredDelete( false )
, mFutureWatcher( 0 )
{
Q_UNUSED( parent );
}

QgsDataItem::~QgsDataItem()
Expand Down
3 changes: 1 addition & 2 deletions src/core/qgsdataitem.h
Expand Up @@ -54,8 +54,7 @@ class CORE_EXPORT QgsDataItem : public QObject
Favourites
};

/** Create new data item.
* @param parent - the param is ignored, children created by createChildren() do not have parent, parent is set later by setParent if the item really becomes a parent child */
/** Create new data item. */
QgsDataItem( QgsDataItem::Type type, QgsDataItem* parent, QString name, QString path );
virtual ~QgsDataItem();

Expand Down

0 comments on commit 9fbcc7e

Please sign in to comment.