]> git.cworth.org Git - sup/commitdiff
bugfix in hide_thread
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 14 Nov 2007 17:03:38 +0000 (17:03 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 14 Nov 2007 17:03:38 +0000 (17:03 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@703 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-index-mode.rb

index a79dc54d31f3256a1b6f1a3333a2207a5b4faa57..10abfaf98abb93fb442c0eb96d4076acb8ff05da 100644 (file)
@@ -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