Add fileitem path to delete dialog if movei file is unavailable
#1
It would be helpful to know where the DB thinks the file should be in case it cannot open it. The current dialog (yesnodialog) has one empty line that could be filled with the path of the file.

Code:
//in bool CGUIWindowVideoNav::DeleteItem(CFileItem* pItem, bool bUnavailable /* = false */)
if(bUnavailable)
  {
    pDialog->SetLine(0, g_localizeStrings.Get(662));
    pDialog->SetLine(1, g_localizeStrings.Get(663));
    pDialog->SetLine(2, pItem->GetPath());
    pDialog->DoModal();
  }

This would be an intermediate solution and furthermore I would suggest to add a "retry" option instead of offering to delete the entry.

Code:
bool CGUIWindowVideoNav::OnClick(int iItem)
should display a "retry" dialog instead of calling DeleteItem right away.
The retry dialog should contain just a "retry" button and if the user cancels this retry dialog, the current process flow could be picked up again.

I would be willing to create a patch.
Reply
#2
Do it Wink
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Add fileitem path to delete dialog if movei file is unavailable0