From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs1183186ebz; Sun, 3 Jan 2010 22:13:10 -0800 (PST) Received: by 10.224.51.205 with SMTP id e13mr10939686qag.387.1262585589933; Sun, 03 Jan 2010 22:13:09 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 42si19806933qyk.6.2010.01.03.22.13.08; Sun, 03 Jan 2010 22:13:08 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id EF6FA1D78878; Mon, 4 Jan 2010 01:13:07 -0500 (EST) Received: from mail.cnsp.com (mail.cnsp.com [208.3.80.17]) by rubyforge.org (Postfix) with ESMTP id C6C1618582C3 for ; Mon, 4 Jan 2010 01:13:04 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.cnsp.com (Postfix) with ESMTP id 9B708D44DB29 for ; Sun, 3 Jan 2010 23:06:37 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at cnsp.biz Received: from mail.cnsp.com ([127.0.0.1]) by localhost (mail.cnsp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H2vKgeMyeY10 for ; Sun, 3 Jan 2010 23:06:37 -0700 (MST) Received: from home.mrtheplague.net (coffeehost.tcct.nmt.edu [129.138.3.50]) by mail.cnsp.com (Postfix) with SMTP id 5F05AD464AE9 for ; Sun, 3 Jan 2010 23:06:37 -0700 (MST) Received: by home.mrtheplague.net (Postfix, from userid 1000) id 0CC0284A6BDB; Sun, 3 Jan 2010 23:06:37 -0700 (MST) From: Anthony Martinez To: sup-devel@rubyforge.org Date: Sun, 3 Jan 2010 23:06:35 -0700 Message-Id: <1262585196-25964-2-git-send-email-pi+sup@pihost.us> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1262585196-25964-1-git-send-email-pi+sup@pihost.us> References: <1262585196-25964-1-git-send-email-pi+sup@pihost.us> Subject: [sup-devel] [PATCH 2/3] undoing read_and_archive should preserve unread state X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --- lib/sup/modes/inbox-mode.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/sup/modes/inbox-mode.rb b/lib/sup/modes/inbox-mode.rb index ad3a864..852ddb7 100644 --- a/lib/sup/modes/inbox-mode.rb +++ b/lib/sup/modes/inbox-mode.rb @@ -66,9 +66,10 @@ class InboxMode < ThreadIndexMode return unless cursor_thread thread = cursor_thread # to make sure lambda only knows about 'old' cursor_thread + was_unread = thread.labels.member? :unread UndoManager.register "reading and archiving thread" do thread.apply_label :inbox - thread.apply_label :unread + thread.apply_label :unread if was_unread add_or_unhide thread.first end -- 1.6.5 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel