Ticket #2497: fix_clear_queued_torrents.patch

File fix_clear_queued_torrents.patch, 794 bytes (added by awknaust, 10 years ago)

patch to fix issue (adds one line in queuedtorrents.py)

  • deluge/ui/gtkui/queuedtorrents.py

     From 0b13e53de711ec50db75709bb8bfb6be790db1fe Mon Sep 17 00:00:00 2001
    From: Alex Knaust <awknaust@gmail.com>
    Date: Sun, 31 Aug 2014 12:07:50 -0600
    Subject: [PATCH] Fixed 'clear' button in torrent dialog not completely
     clearing the queue.
    
    ---
     deluge/ui/gtkui/queuedtorrents.py | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/deluge/ui/gtkui/queuedtorrents.py b/deluge/ui/gtkui/queuedtorrents.py
    index ef41ae1..2e8b52b 100644
    a b def on_button_remove_clicked(self, widget):  
    164164            self.update_status_bar()
    165165
    166166    def on_button_clear_clicked(self, widget):
     167        del self.queue[:]
    167168        self.liststore.clear()
    168169        self.update_status_bar()
    169170