From 7dc822e55421288a0c8a67ea8e85df5c5e50dace Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 2 Nov 2013 23:06:22 -0500 Subject: Remove botched transfer slave threading code This largely resolves Bug 1670 --- kget/tdemainwidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kget/tdemainwidget.cpp') 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; -- cgit v1.2.1