make-internal fail if there is a ui_item, not if there isn't.

This commit is contained in:
John Ralls
2021-07-13 09:47:58 -07:00
parent 29a2365fdf
commit 6eb5dfed51

View File

@@ -254,7 +254,7 @@ GncOption::set_option_from_ui_item()
void
GncOption::make_internal()
{
if (!m_ui_item)
if (m_ui_item)
{
PERR("Option %s:%s has a UI Element, can't be INTERNAL.",
get_section().c_str(), get_name().c_str());