From 3c0952cc8971b423ba8940719d0c3f55e7c5b868 Mon Sep 17 00:00:00 2001
From: Gavin Hurlbut <ghurlbut@mythtv.org>
Date: Sun, 30 Jan 2011 11:44:22 -0800
Subject: [PATCH 2/2] In myth_system() use the updated settings.

Seems I missed a spot when changing the settings around to use GetSettings, and
the result is we in some cases will delete the MythSystem entity when we don't
want to.
---
 mythtv/libs/libmythbase/mythsystem.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mythtv/libs/libmythbase/mythsystem.cpp b/mythtv/libs/libmythbase/mythsystem.cpp
index e7cbe1a..557aa4d 100644
--- a/mythtv/libs/libmythbase/mythsystem.cpp
+++ b/mythtv/libs/libmythbase/mythsystem.cpp
@@ -367,7 +367,7 @@ uint myth_system(const QString &command, uint flags, uint timeout)
     MythSystem *ms = new MythSystem(command, flags);
     ms->Run(timeout);
     uint result = ms->Wait(0);
-    if (!(flags & kMSRunBackground))
+    if (!ms->GetSetting("RunInBackground"))
         delete ms;
 
     return result;
-- 
1.7.0.4

