gncOwner convenience functions: jobs do have an active state, fix the getter function. At the same time, move the Job Active getter with the other getters. This is why I missed it the first time.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20616 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-05-11 21:50:25 +00:00
parent 4878672655
commit 31561fdffc
2 changed files with 2 additions and 3 deletions

View File

@ -80,9 +80,9 @@ const char * gncJobGetID (const GncJob *job);
const char * gncJobGetName (const GncJob *job);
const char * gncJobGetReference (const GncJob *job);
GncOwner * gncJobGetOwner (GncJob *job);
gboolean gncJobGetActive (const GncJob *job);
/** @} */
gboolean gncJobGetActive (const GncJob *job);
/** Return a pointer to the instance gncJob that is identified
* by the guid, and is residing in the book. Returns NULL if the

View File

@ -393,9 +393,8 @@ gboolean gncOwnerGetActive (const GncOwner *owner)
return gncVendorGetActive (owner->owner.vendor);
case GNC_OWNER_EMPLOYEE:
return gncEmployeeGetActive (owner->owner.employee);
/* Jobs don't really have an active status, so we consider them always active */
case GNC_OWNER_JOB:
return TRUE;
return gncJobGetActive (owner->owner.job);
}
}