Initialize the undostack to NULL, so we get a proper crash instead of a dangled pointer crash.

This commit is contained in:
dfighter1985 2014-07-15 21:41:11 +02:00
parent 269613fc82
commit a24ad81206

View file

@ -32,8 +32,8 @@ class CEditor : public QMdiSubWindow
Q_OBJECT
public:
CEditor(QMdiArea *parent) : QMdiSubWindow(parent) {}
CEditor() : QMdiSubWindow() {}
CEditor(QMdiArea *parent) : QMdiSubWindow(parent) { current_stack = NULL; }
CEditor() : QMdiSubWindow() { current_stack = NULL; }
virtual void open(QString filename) =0;
virtual void save() =0;
virtual void saveAs(QString filename) =0;