Ticket #5568: mythnews-defects.patch

File mythnews-defects.patch, 1.1 KB (added by Erik Hovland <erik@…>, 12 years ago)

changes item to newItem in the for loop.

  • mythplugins/mythnews/mythnews/mythnewsconfig.cpp

    mythnews has a function that hides a parameter.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythplugins/mythnews/mythnews/mythnewsconfig.cpp |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/mythplugins/mythnews/mythnews/mythnewsconfig.cpp b/mythplugins/mythnews/mythnews/mythnewsconfig.cpp
    index c556d67..8fb98d0 100644
    a b void MythNewsConfig::slotCategoryChanged(MythListButtonItem *item) 
    262262
    263263        for (NewsSiteItem* site = cat->siteList.first();
    264264             site; site = cat->siteList.next() ) {
    265             MythListButtonItem* item =
     265            MythListButtonItem* newItem =
    266266                new MythListButtonItem(m_siteList, site->name, 0, true,
    267267                                      site->inDB ?
    268268                                      MythListButtonItem::FullChecked :
    269269                                      MythListButtonItem::NotChecked);
    270             item->setData(site);
     270            newItem->setData(site);
    271271        }
    272272    }
    273273}