summaryrefslogtreecommitdiffstats
path: root/kget/tdemainwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-11-02 23:06:22 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-11-02 23:06:22 -0500
commit7dc822e55421288a0c8a67ea8e85df5c5e50dace (patch)
tree0be36890782d5f922bb38eae7dffbc9b513276bc /kget/tdemainwidget.cpp
parent74807331b7343f8fbb6011b61f50e57bb6894ab6 (diff)
downloadtdenetwork-7dc822e55421288a0c8a67ea8e85df5c5e50dace.tar.gz
tdenetwork-7dc822e55421288a0c8a67ea8e85df5c5e50dace.zip
Remove botched transfer slave threading code
This largely resolves Bug 1670
Diffstat (limited to 'kget/tdemainwidget.cpp')
-rw-r--r--kget/tdemainwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kget/tdemainwidget.cpp b/kget/tdemainwidget.cpp
index a7d51617..2f7e0a26 100644
--- a/kget/tdemainwidget.cpp
+++ b/kget/tdemainwidget.cpp
@@ -1412,15 +1412,13 @@ void TDEMainWidget::slotAnimTimeout()
//sDebugIn << endl;
#endif
- bool isTransfer;
-
animCounter++;
if (animCounter == myTransferList->getPhasesNum()) {
//updateStatusBar();
animCounter = 0;
}
// update status of all items of transferList
- isTransfer = myTransferList->updateStatus(animCounter);
+ myTransferList->updateStatus(animCounter);
//if (this->isVisible()) {
updateStatusBar();
@@ -2221,7 +2219,9 @@ void TDEMainWidget::onlineDisconnect()
}
}
log(i18n("Disconnecting..."));
- system(TQFile::encodeName(ksettings.disconnectCommand));
+ if (system(TQFile::encodeName(ksettings.disconnectCommand)) < 0) {
+ // Error!
+ }
#ifdef _DEBUG
sDebugOut << endl;