Skip to content

Commit 357be79

Browse files
committedMay 4, 2018
fix xenial build
1 parent 5b5439f commit 357be79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,9 @@ void QgsVectorLayer::destroyEditCommand()
31023102
// Pushing the new command deletes the destroyed one, and since the new
31033103
// command is obsolete it's automatically deleted by the undo stack.
31043104
std::unique_ptr< QUndoCommand > command = qgis::make_unique< QUndoCommand >();
3105+
#if QT_VERSION >= 0x050900
31053106
command->setObsolete( true );
3107+
#endif
31063108
undoStack()->push( command.release() );
31073109

31083110
mEditCommandActive = false;

2 commit comments

Comments
 (2)

pblottiere commented on May 4, 2018

@pblottiere
Member

Thanks @jef-n :)

nyalldawson commented on May 4, 2018

@nyalldawson
Collaborator

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.