3574 | | if (m_d->m_videoList->Delete(metadata->GetID())) |
| 3574 | unsigned int id = metadata->GetID(); |
| 3575 | if (id == 0) |
| 3576 | { |
| 3577 | if (m_d->m_videoList->Delete(metadata->GetFilename())) |
| 3578 | { |
| 3579 | if (m_videoButtonTree) |
| 3580 | m_videoButtonTree->RemoveItem(item, false); // FIXME Segfault when true |
| 3581 | else |
| 3582 | m_videoButtonList->RemoveItem(item); |
| 3583 | MythGenericTree *parent = gtItem->getParent(); |
| 3584 | parent->deleteNode(gtItem); |
| 3585 | return; |
| 3586 | } |
| 3587 | } |
| 3588 | else if (m_d->m_videoList->Delete(id)) |
3584 | | else |
3585 | | { |
3586 | | QString message = tr("Failed to delete file"); |
3587 | | |
3588 | | MythConfirmationDialog *confirmdialog = |
3589 | | new MythConfirmationDialog(m_popupStack,message,false); |
3590 | | |
3591 | | if (confirmdialog->Create()) |
3592 | | m_popupStack->AddScreen(confirmdialog); |
3593 | | } |
| 3598 | QString message = tr("Failed to delete file"); |
| 3599 | MythConfirmationDialog *confirmdialog = |
| 3600 | new MythConfirmationDialog(m_popupStack,message,false); |
| 3601 | if (confirmdialog->Create()) |
| 3602 | m_popupStack->AddScreen(confirmdialog); |