mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-28 01:36:36 +00:00
Set the undostack so we won't crash...
This commit is contained in:
parent
a24ad81206
commit
cbc3b5a8c9
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ void CMainWindow::openWorkFile(QString file)
|
||||||
if(isWorksheetEditor(file_path->filePath()))
|
if(isWorksheetEditor(file_path->filePath()))
|
||||||
{
|
{
|
||||||
CEditorWorksheet *new_window = new CEditorWorksheet(_ui.mdiArea);
|
CEditorWorksheet *new_window = new CEditorWorksheet(_ui.mdiArea);
|
||||||
|
new_window->setUndoStack( m_undoStack );
|
||||||
new_window->open(file_path->filePath());
|
new_window->open(file_path->filePath());
|
||||||
new_window->activateWindow();
|
new_window->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue