Skip to content

Commit 564c02e

Browse files
committed
[style dock] Reduce timeout on undo stack
1 parent f9d839f commit 564c02e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/qgslayerstylingwidget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )
489489

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

495497
mXml = otherCmd->mXml;

0 commit comments

Comments
 (0)