Fix deadlock when undoing Location removal

This commit is contained in:
Robin Gareus 2023-08-25 03:34:14 +02:00
parent efcef70d9a
commit f38a984396
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1276,7 +1276,9 @@ Locations::set_state (const XMLNode& node, int version)
lcs.emplace_back (std::move (loc));
loc->set_state (**niter, version);
} else {
loc = new Location (_session, **niter);
loc = new Location (_session);
lcs.emplace_back (std::move (loc));
loc->set_state (**niter, version);
}
bool add = true;