Ticket #9421: netgrabbermanager.patch

File netgrabbermanager.patch, 1.2 KB (added by Jonatan <mythtv@…>, 9 years ago)
  • mythtv/libs/libmyth/netgrabbermanager.cpp

    diff --git a/mythtv/libs/libmyth/netgrabbermanager.cpp b/mythtv/libs/libmyth/netgrabbermanager.cpp
    index 78acf41..61143d4 100644
    a b void Search::executeSearch(const QString &script, const QString &query, uint pag 
    251251    resetSearch();
    252252
    253253VERBOSE(VB_IMPORTANT, "Search::executeSearch");
    254     m_searchProcess = new MythSystem();
    255 
    256     connect(m_searchProcess, SIGNAL(finished()), this, SLOT(slotProcessSearchExit()));
    257     connect(m_searchProcess, SIGNAL(error(uint)), this, SLOT(slotProcessSearchExit(uint)));
    258 
    259254    QString cmd = script;
    260255
    261256    QStringList args;
    VERBOSE(VB_IMPORTANT, "Search::executeSearch"); 
    273268                                        .arg(cmd).arg(args.join(" ")));
    274269
    275270    uint flags = kMSRunShell | kMSStdOut | kMSBuffered | kMSRunBackground;
    276     m_searchProcess->SetCommand(cmd, args, flags);
     271    m_searchProcess = new MythSystem(cmd, args, flags);
     272
     273    connect(m_searchProcess, SIGNAL(finished()), this, SLOT(slotProcessSearchExit()));
     274    connect(m_searchProcess, SIGNAL(error(uint)), this, SLOT(slotProcessSearchExit(uint)));
     275
    277276    m_searchProcess->Run(40);
    278277}
    279278