From 255f6315a64bd2aa9bb09a8689b0d1240cb1ffc0 Mon Sep 17 00:00:00 2001 From: MrStevns Date: Tue, 9 Apr 2024 07:47:14 +0200 Subject: [PATCH] Fix tests crashing --- core_lib/src/interface/editor.cpp | 2 -- core_lib/src/managers/backupmanager.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core_lib/src/interface/editor.cpp b/core_lib/src/interface/editor.cpp index fb248e71f..6cc07c83a 100644 --- a/core_lib/src/interface/editor.cpp +++ b/core_lib/src/interface/editor.cpp @@ -56,7 +56,6 @@ Editor::Editor(QObject* parent) : QObject(parent) Editor::~Editor() { // a lot more probably needs to be cleaned here... - clearUndoStack(); clearTemporary(); } @@ -554,7 +553,6 @@ Status Editor::setObject(Object* newObject) return Status::SAFE; } - clearUndoStack(); mObject.reset(newObject); updateObject(); diff --git a/core_lib/src/managers/backupmanager.cpp b/core_lib/src/managers/backupmanager.cpp index 2f50b2e37..c72283ced 100644 --- a/core_lib/src/managers/backupmanager.cpp +++ b/core_lib/src/managers/backupmanager.cpp @@ -67,6 +67,7 @@ bool BackupManager::init() Status BackupManager::load(Object* /*o*/) { + clearStack(); return Status::OK; }