]> git.notmuchmail.org Git - sup/commitdiff
bugfix: 'a' with no threads
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 30 May 2007 17:49:40 +0000 (17:49 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 30 May 2007 17:49:40 +0000 (17:49 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@424 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/inbox-mode.rb

index a69a67e2194eff93fe41481039729b567f9fea32..298c9aab91bf61126270dc5e72953dcc26a72551 100644 (file)
@@ -15,6 +15,7 @@ class InboxMode < ThreadIndexMode
   def killable?; false; end
 
   def archive
+    return unless cursor_thread
     cursor_thread.remove_label :inbox
     hide_thread cursor_thread
     regen_text