Ticket #1072: patch.diff
File patch.diff, 1.1 KB (added by , 18 years ago) |
---|
-
mythgallery/mythgallery/iconview.cpp
174 174 ThumbItem* item = m_itemList.at(m_currRow * m_nCols + 175 175 m_currCol); 176 176 177 if(item->caption == "" && m_showcaption) 178 item->caption = GalleryUtil::getCaption(item->path); 179 if(item->caption == "") 180 item->caption = item->name; 177 if (item) 178 { 179 if(item->caption == "" && m_showcaption) 180 item->caption = GalleryUtil::getCaption(item->path); 181 if(item->caption == "") 182 item->caption = item->name; 181 183 182 ttype->SetText(item ? item->caption : QString("")); 184 ttype->SetText(item ? item->caption : QString("")); 185 } 186 else 187 ttype->SetText(QString("")); 183 188 } 184 189 185 190 container->Draw(&p, 0, 0);