Initialize the undostack to NULL, so we get a proper crash instead of a dangled pointer crash.
This commit is contained in:
parent
5a39d59fb9
commit
19570b735d
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ class CEditor : public QMdiSubWindow
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CEditor(QMdiArea *parent) : QMdiSubWindow(parent) {}
|
CEditor(QMdiArea *parent) : QMdiSubWindow(parent) { current_stack = NULL; }
|
||||||
CEditor() : QMdiSubWindow() {}
|
CEditor() : QMdiSubWindow() { current_stack = NULL; }
|
||||||
virtual void open(QString filename) =0;
|
virtual void open(QString filename) =0;
|
||||||
virtual void save() =0;
|
virtual void save() =0;
|
||||||
virtual void saveAs(QString filename) =0;
|
virtual void saveAs(QString filename) =0;
|
||||||
|
|
Loading…
Reference in a new issue