Skip to content
Snippets Groups Projects
Commit 4e34eba5 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

fixed read from disk with updated memory

parent 6cb1cc6a
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,7 @@ namespace armarx::armem::gui
std::string status;
std::map<std::string, wm::Memory> data = diskControl->loadFromDisk(directory, memoryGroup->queryWidget()->queryInput(), &status);
memoryWriters = mns.getAllWriters(true);
for (auto& [name, memory] : data)
{
if (memoryWriters.count(name) > 0)
......@@ -221,6 +222,10 @@ namespace armarx::armem::gui
auto commit = armem::toCommit(memory);
memoryWriters.at(name).commit(commit);
}
else
{
ARMARX_WARNING << "No memory with name " << name << " available for commit.";
}
}
statusLabel->setText(QString::fromStdString(status));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment