Set the undostack so we won't crash...

This commit is contained in:
dfighter1985 2014-07-15 21:46:16 +02:00
parent 19570b735d
commit be977a23b7

View file

@ -280,6 +280,7 @@ void CMainWindow::openWorkFile(QString file)
if(isWorksheetEditor(file_path->filePath()))
{
CEditorWorksheet *new_window = new CEditorWorksheet(_ui.mdiArea);
new_window->setUndoStack( m_undoStack );
new_window->open(file_path->filePath());
new_window->activateWindow();
}