Ticket #8890: show_devices.patch
File show_devices.patch, 1.0 KB (added by , 14 years ago) |
---|
-
mythgallery/mythgallery/iconview.cpp
1143 1143 delete m_itemList.takeFirst(); 1144 1144 1145 1145 m_itemHash.clear(); 1146 m_imageList->Reset(); 1146 1147 1147 1148 m_thumbGen->cancel(); 1149 m_childCountThread->cancel(); 1148 1150 1149 1151 // add gallery directory 1150 1152 ThumbItem *item = new ThumbItem("Gallery", m_galleryDir, true); … … 1174 1176 } 1175 1177 #endif 1176 1178 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 1177 1191 // exit from menu on show devices action.. 1178 1192 SetFocusWidget(m_imageList); 1179 1193 }