mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
An empty GValue is interpreted as NULL reason, which is still a valid cache
Ignoring this would make caching almost useless as there are typically only very few read-only transactions.
This commit is contained in:
parent
a19dcc7bd4
commit
1117027f72
@ -2472,8 +2472,8 @@ xaccTransGetReadOnly (Transaction *trans)
|
||||
{
|
||||
trans->readonly_reason = g_value_dup_string (&v);
|
||||
g_value_unset (&v);
|
||||
trans->reason_cache_valid = TRUE;
|
||||
}
|
||||
trans->reason_cache_valid = TRUE;
|
||||
}
|
||||
return trans->readonly_reason;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user