mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Avoid infinite recursion when the alias changes only the section name.
This commit is contained in:
parent
7885353fe3
commit
29a2365fdf
@ -227,7 +227,7 @@ GncOptionDB::find_option(const std::string& section, const char* name) const
|
|||||||
* nullptr. GncOptionSection::find_option already checked if the alias
|
* nullptr. GncOptionSection::find_option already checked if the alias
|
||||||
* should have been in the same section.
|
* should have been in the same section.
|
||||||
*/
|
*/
|
||||||
if (alias && alias->first)
|
if (alias && alias->first && section != alias->first)
|
||||||
return find_option(alias->first, alias->second);
|
return find_option(alias->first, alias->second);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user