Skip to content
Permalink
Browse files

Fix crash in undo dock when clearing project/closing QGIS

Fixes #38157
  • Loading branch information
nyalldawson committed Oct 14, 2020
1 parent 9975892 commit d87d230bb4bcbe091fe35bb047d54f7d9fcaabb8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsundowidget.h
@@ -25,6 +25,7 @@
#include <QWidget>
#include <QUndoView>
#include <QUndoStack>
#include <QPointer>

#include "qgspanelwidget.h"
#include "qgis_app.h"
@@ -93,7 +94,7 @@ class APP_EXPORT QgsUndoWidget : public QgsPanelWidget

private:
QUndoView *mUndoView = nullptr;
QUndoStack *mUndoStack = nullptr;
QPointer< QUndoStack > mUndoStack;
QgsMapCanvas *mMapCanvas = nullptr;

int mPreviousIndex = 0;

0 comments on commit d87d230

Please sign in to comment.
You can’t perform that action at this time.