Skip to content
Snippets Groups Projects
Commit dd36034a authored by Andre Meixner's avatar Andre Meixner :camera:
Browse files

Disabling auto update in skill memory gui if ice connection error

parent 2b4b0e08
No related branches found
No related tags found
1 merge request!483Feature/skill memory gui fix
......@@ -136,5 +136,10 @@ namespace armarx::skills::gui
&SkillManagerWrapper::connectionUpdate,
connectionStatusLabel,
&StatusLabel::handleMessage);
connect(memory.get(),
&SkillManagerWrapper::disableAutoUpdate,
updateWidget,
&PeriodicUpdateWidget::disableAutoUpdate);
}
} // namespace armarx::skills::gui
......@@ -45,6 +45,7 @@ namespace armarx::skills::gui
<< "Unhandled Ice exception encountered while updating executions. Exception was: "
<< e;
emit connectionUpdate("Could not fetch executions", e.what());
emit disableAutoUpdate();
return {};
}
catch (...)
......@@ -159,6 +160,7 @@ namespace armarx::skills::gui
<< "Unhandled Ice exception encountered while updating skills. Exception was: "
<< e;
emit connectionUpdate("Could not fetch skills", e.what());
emit disableAutoUpdate();
return {};
}
catch (...)
......
......@@ -79,6 +79,7 @@ namespace armarx::skills::gui
};
signals:
void disableAutoUpdate();
void connectionUpdate(std::string const& message, std::string const& error);
void updateAvailable(Snapshot update);
void searchAccepted();
......
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