mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-02 19:59:30 -05:00
moved Pause/Resume to the correct context menu position
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2586 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
601eb74e0f
commit
67c6fd433e
@ -389,6 +389,14 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point )
|
|||||||
contextMnu.addAction( pauseAct);
|
contextMnu.addAction( pauseAct);
|
||||||
if(!all_downld)
|
if(!all_downld)
|
||||||
contextMnu.addAction( resumeAct);
|
contextMnu.addAction( resumeAct);
|
||||||
|
|
||||||
|
if(single)
|
||||||
|
{
|
||||||
|
if(info.downloadStatus == FT_STATE_PAUSED)
|
||||||
|
contextMnu.addAction( resumeAct);
|
||||||
|
else if(info.downloadStatus != FT_STATE_COMPLETE)
|
||||||
|
contextMnu.addAction( pauseAct);
|
||||||
|
}
|
||||||
|
|
||||||
if(info.downloadStatus != FT_STATE_COMPLETE)
|
if(info.downloadStatus != FT_STATE_COMPLETE)
|
||||||
contextMnu.addAction( cancelAct);
|
contextMnu.addAction( cancelAct);
|
||||||
@ -408,10 +416,6 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point )
|
|||||||
contextMnu.addAction( detailsfileAct);
|
contextMnu.addAction( detailsfileAct);
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
|
||||||
if(info.downloadStatus == FT_STATE_PAUSED)
|
|
||||||
contextMnu.addAction( resumeAct);
|
|
||||||
else if(info.downloadStatus != FT_STATE_COMPLETE)
|
|
||||||
contextMnu.addAction( pauseAct);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
contextMnu.addAction( clearcompletedAct);
|
contextMnu.addAction( clearcompletedAct);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user