Skip to content

Commit

Permalink
fix xenial build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 4, 2018
1 parent 5b5439f commit 357be79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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 );
#endif
undoStack()->push( command.release() );

mEditCommandActive = false;
Expand Down

2 comments on commit 357be79

@pblottiere
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jef-n :)

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.