Skip to content
Permalink
Browse files

browser items parent (moving to thread) fix (crash when dragging post…

…gres layer)
  • Loading branch information
blazek committed Dec 16, 2014
1 parent 79e1236 commit 9fbcc7e24875c2f22874f9e2b9e8bfb487b31bc7
Showing with 2 additions and 4 deletions.
  1. +1 −2 src/core/qgsdataitem.cpp
  2. +1 −2 src/core/qgsdataitem.h
@@ -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()
@@ -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();

0 comments on commit 9fbcc7e

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