Skip to content

Commit

Permalink
Fix tests crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Apr 9, 2024
1 parent cb30ce6 commit 255f631
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions core_lib/src/interface/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Editor::Editor(QObject* parent) : QObject(parent)
Editor::~Editor()
{
// a lot more probably needs to be cleaned here...
clearUndoStack();
clearTemporary();
}

Expand Down Expand Up @@ -554,7 +553,6 @@ Status Editor::setObject(Object* newObject)
return Status::SAFE;
}

clearUndoStack();
mObject.reset(newObject);

updateObject();
Expand Down
1 change: 1 addition & 0 deletions core_lib/src/managers/backupmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ bool BackupManager::init()

Status BackupManager::load(Object* /*o*/)
{
clearStack();
return Status::OK;
}

Expand Down

0 comments on commit 255f631

Please sign in to comment.