Skip to content
Permalink
Browse files
[style dock] Reduce timeout on undo stack
  • Loading branch information
NathanW2 committed Jul 7, 2016
1 parent f9d839f commit 564c02e93f85b2f8d24fc1ffd7fa09466568d279
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgslayerstylingwidget.cpp
@@ -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;

0 comments on commit 564c02e

Please sign in to comment.