Skip to content

Commit

Permalink
Refs #19880: Apply rev suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Nov 24, 2023
1 parent 01a93e3 commit 3b4b494
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/fastdds_monitor/model/info/InfoModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// along with eProsima Fast DDS Monitor. If not, see <https://www.gnu.org/licenses/>.

/**
* @file TreeModel.hpp
* @file InfoModel.hpp
*/

#ifndef _EPROSIMA_FASTDDS_MONITOR_MODEL_TREE_INFOMODEL_H
Expand Down
2 changes: 2 additions & 0 deletions qml/MonitoringPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ ColumnLayout {
id: app_logo
smooth: true
visible: parent.visible
source: infoSelectedEntity.app_id != "UNKNOWN_APP"
? "/resources/images/app_logos/" + infoSelectedEntity.app_id + ".png" : ""
anchors.top: parent.top
anchors.topMargin: logo_margin_
sourceSize.width: parent.width
Expand Down
5 changes: 3 additions & 2 deletions src/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ bool Engine::fill_entity_info_(
info_model_->update(default_info);
info_model_->update_selected_entity(
backend::entity_kind_to_QString(backend::EntityKind::INVALID),
"No entity selected", "UNKNOWN_APP");
"No entity selected",
"UNKNOWN_APP");
}
else
{
Expand Down Expand Up @@ -1495,7 +1496,7 @@ void Engine::set_alias(
app_id = entity_info["app_id"];
}
info_model_->update_selected_entity(
backend::backend_id_to_models_id(entity_id),
utils::to_QString(entity_info["kind"]),
utils::to_QString(new_alias),
utils::to_QString(app_id));
}
Expand Down

0 comments on commit 3b4b494

Please sign in to comment.