def remove_task(self, row, scan=True):
if row[STATE_COL] == State.UPLOADING:<EOL><INDENT>self.remove_worker(row[FID_COL], stop=True)<EOL><DEDENT>self.remove_task_db(row[FID_COL])<EOL>tree_iter = row.iter<EOL>if tree_iter:<EOL><INDENT>self.liststore.remove(tree_iter)<EOL><DEDENT>if scan:<EOL><INDENT>self.scan_tasks()<EOL><DEDENT>
删除下载任务