void DrtaMW2 :: slotIPAdd() { try{ if (hostEdit->currentText().isEmpty()) throw Error(tr("No host specified!")); lb_ips -> insertItem( hostEdit->currentText() ); hostEdit->clear(); } catch (Error e){ abortAll(e.getText()); } }
void DrtaMW2 :: slotIPDel() { int cur = 0; try{ cur = lb_ips -> currentItem(); if( cur != -1){ lb_ips -> removeItem( cur ); }else{ //QWarnning? debug("no item select"); } } catch (Error e){ abortAll(e.getText()); } }
void DownloadManager::shutdown() { Log::write("Download manager closing"); if(_downloadStreams.size() > 0) abortAll(); }