[img-editor] Fixed possible crash on exit with text item selected.

This commit is contained in:
23rd
2026-04-22 09:36:47 +03:00
parent 092f81dad6
commit 876117bbf4
@@ -820,6 +820,7 @@ void Scene::finishTextEditing(bool save) {
}
Scene::~Scene() {
disconnect(this, &QGraphicsScene::selectionChanged, nullptr, nullptr);
if (_textEdit.proxy) {
setTextEditing(false);
const auto raw = static_cast<TextEditProxy*>(