Skip to content

Commit

Permalink
Fix crash in undo dock when clearing project/closing QGIS
Browse files Browse the repository at this point in the history
Fixes #38157
  • Loading branch information
nyalldawson committed Oct 14, 2020
1 parent 9975892 commit d87d230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsundowidget.h
Original file line number Diff line number Diff line change
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 @@ -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;
Expand Down

0 comments on commit d87d230

Please sign in to comment.