From 31561fdffc076eebbe628733733abb5feb44f20f Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Wed, 11 May 2011 21:50:25 +0000 Subject: [PATCH] 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 --- src/engine/gncJob.h | 2 +- src/engine/gncOwner.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/gncJob.h b/src/engine/gncJob.h index c1008ae0ef..b74b53bd19 100644 --- a/src/engine/gncJob.h +++ b/src/engine/gncJob.h @@ -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 diff --git a/src/engine/gncOwner.c b/src/engine/gncOwner.c index 87b0f45f05..688e1227da 100644 --- a/src/engine/gncOwner.c +++ b/src/engine/gncOwner.c @@ -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); } }