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

--HG--
branch : gsoc2014-dfighter
hg/feature/cdb-packed
dfighter1985 10 years ago
parent 63b6a03f85
commit d30e9ad226

@ -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;

Loading…
Cancel
Save