Skip to content

Commit

Permalink
Bug 798802 - Online Price quote - Stocks not working GNU 5.0 Windows
Browse files Browse the repository at this point in the history
Change the property-tree path delimiter for constructing paths from
'.' that's commonly used in stock symbols, to '|' that isn't.
  • Loading branch information
jralls committed Mar 30, 2023
1 parent ecdd9de commit a587dff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libgnucash/app-utils/gnc-quotes.cpp
Expand Up @@ -479,8 +479,9 @@ GncQuotesImpl::query_fq (const char* source, const StrVec& commodities)
commodities.cend(),
[source, &pt](auto sym)
{
std::string key{source};
key += "." + sym;
using Path = bpt::ptree::path_type;
Path key{source, '|'};
key /= Path{sym, '|'};
pt.put(key, "");
});
std::ostringstream result;
Expand Down

0 comments on commit a587dff

Please sign in to comment.