Skip to content

Commit

Permalink
[style dock] Reduce timeout on undo stack
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 7, 2016
1 parent f9d839f commit 564c02e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgslayerstylingwidget.cpp
Expand Up @@ -489,7 +489,9 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )

// only merge commands if they are created shortly after each other
// (e.g. user keeps modifying one property)
if ( mTime.msecsTo( otherCmd->mTime ) > 3000 )
QSettings settings;
int timeout = settings.value( "/UI/styleUndoMergeTimeout", 500 ).toInt();
if ( mTime.msecsTo( otherCmd->mTime ) > timeout )
return false;

mXml = otherCmd->mXml;
Expand Down

0 comments on commit 564c02e

Please sign in to comment.