Navigation Menu

Skip to content

Commit

Permalink
drag layer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Jun 16, 2011
1 parent 59992b0 commit 72e5edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/qgsbrowsermodel.cpp
Expand Up @@ -83,7 +83,7 @@ Qt::ItemFlags QgsBrowserModel::flags( const QModelIndex & index ) const
Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable;

QgsDataItem* ptr = ( QgsDataItem* ) index.internalPointer();
if ( ptr->type() != QgsDataItem::Layer )
if ( ptr->type() == QgsDataItem::Layer )
{
flags |= Qt::ItemIsDragEnabled;
}
Expand Down

0 comments on commit 72e5edc

Please sign in to comment.