Skip to content

Commit

Permalink
Bug 798815 - flatpak run --command=gnucash-cli cannot download...
Browse files Browse the repository at this point in the history
quotes since 5.0.

The filename is getting stuffed into the m_quotes_cmd vector unless --namespace
is specified, so check if that's happened and copy the value over.
  • Loading branch information
jralls committed Apr 4, 2023
1 parent a1bec6f commit efb24f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnucash/gnucash-cli.cpp
Expand Up @@ -139,6 +139,8 @@ Gnucash::GnucashCli::start ([[maybe_unused]] int argc, [[maybe_unused]] char **a
}
else if (m_quotes_cmd.front() == "get")
{
if (!m_file_to_load && m_quotes_cmd.size() == 2)
m_file_to_load = m_quotes_cmd[1];

if (!m_file_to_load || m_file_to_load->empty())
{
Expand Down

0 comments on commit efb24f0

Please sign in to comment.