 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/deluge/ui/gtkui/queuedtorrents.py
+++ b/deluge/ui/gtkui/queuedtorrents.py
@@ -164,6 +164,7 @@ def on_button_remove_clicked(self, widget):
             self.update_status_bar()
 
     def on_button_clear_clicked(self, widget):
+        del self.queue[:]
         self.liststore.clear()
         self.update_status_bar()
 
-- 
1.9.1
