From 4a596909684b261f9d22f2911abf86e7e9f5b6fc Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Wed, 4 Jan 2012 20:22:56 +0400 Subject: [PATCH] Don't print empty parentheses without any flags to fill them. --- library/xml | 2 +- plugins/jobutils.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/library/xml b/library/xml index 4857a4f5a..e61e696e2 160000 --- a/library/xml +++ b/library/xml @@ -1 +1 @@ -Subproject commit 4857a4f5af1a4174e5478f1221552826a60b36c5 +Subproject commit e61e696e2a2bb6b24a86c9c01a26f3133509585e diff --git a/plugins/jobutils.cpp b/plugins/jobutils.cpp index bca8696f5..c89ca2f40 100644 --- a/plugins/jobutils.cpp +++ b/plugins/jobutils.cpp @@ -418,8 +418,10 @@ static void print_job_item_details(Core *c, df::job *job, df::job_item *item) static void print_job_details(Core *c, df::job *job) { - c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type) - << " (" << bitfieldToString(job->flags) << ")" << endl; + c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type); + if (job->flags.whole) + c->con << " (" << bitfieldToString(job->flags) << ")"; + c->con << endl; MaterialInfo mat(job); if (mat.isValid() || job->material_category.whole)