commit c75376f1dff385cb66bdbae5552e05bd436cb8a5
parent 66d13726f817ac87870254af8239e0375c7817eb
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Wed, 14 Nov 2007 17:03:38 +0000
bugfix in hide_thread
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@703 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -477,9 +477,9 @@ protected
def hide_thread t
@mutex.synchronize do
+ i = @threads.index(t) or return
raise "already hidden" if @hidden_threads[t]
@hidden_threads[t] = true
- i = @threads.index t
@threads.delete_at i
@size_widgets.delete_at i
@tags.drop_tag_for t