mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
fixed bug showing play for unfinished files and preview for finished ones
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6759 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
43832a1f58
commit
0a3419c692
1 changed files with 6 additions and 6 deletions
|
@ -695,11 +695,11 @@ void TransfersDialog::downloadListCustomPopupMenu( QPoint /*point*/ )
|
||||||
if(info.downloadStatus == FT_STATE_QUEUED)
|
if(info.downloadStatus == FT_STATE_QUEUED)
|
||||||
{
|
{
|
||||||
atLeastOne_Queued = true;
|
atLeastOne_Queued = true;
|
||||||
}
|
}
|
||||||
if (info.downloadStatus == FT_STATE_PAUSED)
|
if (info.downloadStatus == FT_STATE_PAUSED)
|
||||||
{
|
{
|
||||||
atLeastOne_Paused = true;
|
atLeastOne_Paused = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t pos = info.fname.find_last_of('.');
|
size_t pos = info.fname.find_last_of('.');
|
||||||
/* check if the file is a media file */
|
/* check if the file is a media file */
|
||||||
|
@ -707,10 +707,10 @@ void TransfersDialog::downloadListCustomPopupMenu( QPoint /*point*/ )
|
||||||
{
|
{
|
||||||
if (misc::isPreviewable(info.fname.substr(pos + 1).c_str()))
|
if (misc::isPreviewable(info.fname.substr(pos + 1).c_str()))
|
||||||
{
|
{
|
||||||
add_PlayOption = (info.downloadStatus != FT_STATE_COMPLETE);
|
add_PreviewOption = (info.downloadStatus != FT_STATE_COMPLETE);
|
||||||
add_PreviewOption = !add_PlayOption;
|
add_PlayOption = !add_PreviewOption;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}//if (rsFiles->FileDetails(lst[i].data(COLUMN_ID), RS_FILE_HINTS_DOWNLOAD, info))
|
}//if (rsFiles->FileDetails(lst[i].data(COLUMN_ID), RS_FILE_HINTS_DOWNLOAD, info))
|
||||||
}//if (lst[i].column() == 0)
|
}//if (lst[i].column() == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue