Skip to content

Commit a309a6c

Browse files
committedJul 31, 2014
[composer] Don't deselect items when unlocking them from the items panel
1 parent aa40d61 commit a309a6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/core/composer/qgscomposermodel.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ bool QgsComposerModel::setData( const QModelIndex & index, const QVariant & valu
204204
case LockStatus:
205205
//second column is item lock state
206206
item->setPositionLock( value.toBool() );
207-
item->setSelected( false );
207+
if ( value.toBool() )
208+
{
209+
//deselect item when locking
210+
item->setSelected( false );
211+
}
208212
emit dataChanged( index, index );
209213
return true;
210214

0 commit comments

Comments
 (0)
Please sign in to comment.