Skip to content

Commit

Permalink
[composer] Don't deselect items when unlocking them from the items panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 31, 2014
1 parent aa40d61 commit a309a6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/composer/qgscomposermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ bool QgsComposerModel::setData( const QModelIndex & index, const QVariant & valu
case LockStatus:
//second column is item lock state
item->setPositionLock( value.toBool() );
item->setSelected( false );
if ( value.toBool() )
{
//deselect item when locking
item->setSelected( false );
}
emit dataChanged( index, index );
return true;

Expand Down

0 comments on commit a309a6c

Please sign in to comment.