Skip to content

Commit 357be79

Browse files
committed
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;

0 commit comments

Comments
 (0)