Skip to content
Permalink
Browse files

Fix crash in undo dock when clearing project/closing QGIS

  • Loading branch information
github-actions committed Oct 14, 2020
1 parent f4423aa commit 5c97ff66dd90d450a1ec60583da9626c14c9c08c
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"
@@ -101,7 +102,7 @@ class APP_EXPORT QgsUndoWidget : public QgsPanelWidget

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

int mPreviousIndex;

0 comments on commit 5c97ff6

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