Skip to content
Browse files
fix xenial build
  • Loading branch information
jef-n committed May 4, 2018
1 parent 5b5439f commit 357be7973807295d49c21d79c71e9c497366169c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsvectorlayer.cpp
@@ -3102,7 +3102,9 @@ void QgsVectorLayer::destroyEditCommand()
// Pushing the new command deletes the destroyed one, and since the new
// command is obsolete it's automatically deleted by the undo stack.
std::unique_ptr< QUndoCommand > command = qgis::make_unique< QUndoCommand >();
#if QT_VERSION >= 0x050900
command->setObsolete( true );
undoStack()->push( command.release() );

mEditCommandActive = false;

2 comments on commit 357be79


This comment has been minimized.

Copy link

@pblottiere pblottiere replied May 4, 2018

Thanks @jef-n :)


This comment has been minimized.

Copy link

@nyalldawson nyalldawson replied May 4, 2018

Shouldn't that be the whole block which is ifdefed out? Otherwise wouldn't we make the problem worse by adding an extra empty undo command? (Dont have access to qt < 5.9 to test)

Please sign in to comment.