Bug 798815 - flatpak run --command=gnucash-cli cannot download...

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.
This commit is contained in:
John Ralls 2023-04-04 16:37:57 -07:00
parent a1bec6fc01
commit efb24f090d

View File

@ -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())
{