Ticket #9421: 0002-In-myth_system-use-the-updated-settings.patch

File 0002-In-myth_system-use-the-updated-settings.patch, 1.0 KB (added by beirdo, 10 years ago)
  • mythtv/libs/libmythbase/mythsystem.cpp

    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 b uint myth_system(const QString &command, uint flags, uint timeout) 
    367367    MythSystem *ms = new MythSystem(command, flags);
    368368    ms->Run(timeout);
    369369    uint result = ms->Wait(0);
    370     if (!(flags & kMSRunBackground))
     370    if (!ms->GetSetting("RunInBackground"))
    371371        delete ms;
    372372
    373373    return result;