Ticket #8890: show_devices.patch

File show_devices.patch, 1.0 KB (added by Jonatan <mythtv@…>, 14 years ago)
  • mythgallery/mythgallery/iconview.cpp

     
    11431143        delete m_itemList.takeFirst();
    11441144
    11451145    m_itemHash.clear();
     1146    m_imageList->Reset();
    11461147
    11471148    m_thumbGen->cancel();
     1149    m_childCountThread->cancel();
    11481150
    11491151    // add gallery directory
    11501152    ThumbItem *item = new ThumbItem("Gallery", m_galleryDir, true);
     
    11741176    }
    11751177#endif
    11761178
     1179    ThumbItem *thumbitem;
     1180    for (int x = 0; x < m_itemList.size(); x++)
     1181    {
     1182        thumbitem = m_itemList.at(x);
     1183
     1184        thumbitem->InitCaption(m_showcaption);
     1185        MythUIButtonListItem* item =
     1186            new MythUIButtonListItem(m_imageList, thumbitem->GetCaption(), 0,
     1187                                     true, MythUIButtonListItem::NotChecked);
     1188        item->SetData(qVariantFromValue(thumbitem));
     1189    }
     1190
    11771191    // exit from menu on show devices action..
    11781192    SetFocusWidget(m_imageList);
    11791193}