mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-20 23:26:32 -04:00
added viewable condition to all updates to gain CPU
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.4.x@1826 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ff55eb45da
commit
d673c55c98
@ -125,6 +125,9 @@ LinksDialog::LinksDialog(QWidget *parent)
|
||||
|
||||
void LinksDialog::checkUpdate()
|
||||
{
|
||||
if(!isVisible())
|
||||
return ;
|
||||
|
||||
/* update */
|
||||
if (!rsRanks)
|
||||
return;
|
||||
|
@ -271,6 +271,9 @@ void TransfersDialog::playSelectedTransfer()
|
||||
|
||||
void TransfersDialog::updateProgress(int value)
|
||||
{
|
||||
if(!isVisible())
|
||||
return ;
|
||||
|
||||
for(int i = 0; i <= DLListModel->rowCount(); i++) {
|
||||
if(selection->isRowSelected(i, QModelIndex())) {
|
||||
editItem(i, PROGRESS, QVariant((double)value));
|
||||
@ -381,6 +384,9 @@ void TransfersDialog::editItem(int row, int column, QVariant data)
|
||||
/* get the list of Transfers from the RsIface. **/
|
||||
void TransfersDialog::insertTransfers()
|
||||
{
|
||||
if(!isVisible())
|
||||
return ;
|
||||
|
||||
QString symbol, name, sources, status, coreId;
|
||||
qlonglong fileSize, completed, remaining;
|
||||
double progress, dlspeed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user