Skip to content

Commit

Permalink
Merge pull request #39375 from qgis-bot/backport-39359-to-release-3_10
Browse files Browse the repository at this point in the history
[Backport release-3_10] Fix crash in undo dock when clearing project/closing QGIS
  • Loading branch information
m-kuhn committed Oct 15, 2020
2 parents c72c111 + 5c97ff6 commit 390384c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsundowidget.h
Expand Up @@ -25,6 +25,7 @@
#include <QWidget>
#include <QUndoView>
#include <QUndoStack>
#include <QPointer>

#include "qgspanelwidget.h"
#include "qgis_app.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 390384c

Please sign in to comment.