Skip to content

Commit

Permalink
fix: add double quote so we understand that identifier can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel committed Oct 8, 2024
1 parent 22d3b9b commit 36541c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/rcdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ QString extractStringForDialog(const RcCore::Data::Dialog *dialog, const QString
if (dialog) {
const auto control = findControlWithId(dialog, id);
if (!control) {
spdlog::warn("{}: control from id {} does not exist in the rc file.", FUNCTION_NAME, id);
spdlog::warn("{}: control from id \"{}\" does not exist in the rc file.", FUNCTION_NAME, id);
return {};
}
return control.value().text;
} else {
spdlog::warn("{}: id {} does not exist in the rc file.", FUNCTION_NAME, id);
spdlog::warn("{}: id \"{}\" does not exist in the rc file.", FUNCTION_NAME, id);
return {};
}
}
Expand Down

0 comments on commit 36541c8

Please sign in to comment.