diff options
author | Darrell Anderson <[email protected]> | 2012-04-13 01:04:19 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-04-13 01:04:19 -0500 |
commit | 008eae43da364c9a910416652cf277c4ef5895c9 (patch) | |
tree | 5f9060ce2395120f3ce327d444b035a6ece978a4 /kget/transfer.cpp | |
parent | 2bc02dc6e21b9f38a76c6733a0931c7ebc944547 (diff) | |
download | tdenetwork-008eae43da364c9a910416652cf277c4ef5895c9.tar.gz tdenetwork-008eae43da364c9a910416652cf277c4ef5895c9.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'kget/transfer.cpp')
-rw-r--r-- | kget/transfer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kget/transfer.cpp b/kget/transfer.cpp index 230daa19..0043291d 100644 --- a/kget/transfer.cpp +++ b/kget/transfer.cpp @@ -218,7 +218,7 @@ void Transfer::slotUpdateActions() m_paDelay->blockSignals(true); switch (mode) { - case MD_TQUEUED: + case MD_QUEUED: m_paQueue->setChecked(true); break; case MD_SCHEDULED: @@ -323,7 +323,7 @@ bool Transfer::updateStatus(int counter) isTransfer = true; break; case ST_STOPPED: - if(mode == MD_TQUEUED) + if(mode == MD_QUEUED) pix = &view->pixQueued; else if(mode == MD_SCHEDULED) pix = &view->pixScheduled; @@ -385,7 +385,7 @@ void Transfer::slotResume() m_paResume->setEnabled(false); status = ST_TRYING; - mode = MD_TQUEUED; + mode = MD_QUEUED; logMessage(i18n("Attempt number %1").arg(retryCount)); sDebug << "sending Resume to slave " << endl; @@ -407,7 +407,7 @@ void Transfer::slotResume() sDebug << "Killing Slave" << endl; slotSpeed(0); - mode = MD_TQUEUED; + mode = MD_QUEUED; status=ST_STOPPED; m_paQueue->setChecked(true); @@ -492,11 +492,11 @@ void Transfer::slotQueue() logMessage(i18n("Queueing")); - assert(!(mode == MD_TQUEUED)); + assert(!(mode == MD_QUEUED)); - mode = MD_TQUEUED; + mode = MD_QUEUED; m_paQueue->setChecked(true); - emit statusChanged(this, OP_TQUEUED); + emit statusChanged(this, OP_QUEUED); sDebugOut << endl; } @@ -786,7 +786,7 @@ bool Transfer::read(KSimpleConfig * config, int id) return false; } - mode = (TransferMode) config->readNumEntry("Mode", MD_TQUEUED); + mode = (TransferMode) config->readNumEntry("Mode", MD_QUEUED); status = (TransferStatus) config->readNumEntry("Status", ST_RUNNING); startTime = config->readDateTimeEntry("ScheduledTime"); canResume = config->readBoolEntry("CanResume", true); @@ -862,8 +862,8 @@ void Transfer::slotExecBroken() sDebugIn << endl; status = ST_STOPPED; - mode = MD_TQUEUED; - emit statusChanged(this, OP_TQUEUED); + mode = MD_QUEUED; + emit statusChanged(this, OP_QUEUED); sDebugOut << endl; } @@ -897,8 +897,8 @@ void Transfer::slotExecConnected() m_pSlave->Op(Slave::KILL); if (ksettings.b_addQueued) { - mode = MD_TQUEUED; - emit statusChanged(this, OP_TQUEUED); + mode = MD_QUEUED; + emit statusChanged(this, OP_QUEUED); } else { @@ -1016,7 +1016,7 @@ void Transfer::NotInCache() { logMessage(i18n("checking if file is in cache...no")); if (ksettings.b_addQueued) - mode = MD_TQUEUED; + mode = MD_QUEUED; else mode = MD_DELAYED; status = ST_STOPPED; |