From 0b3b66ab127fb534a6941ce89739a7a53be8d9ad Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 11 Jan 2013 13:01:43 -0500
Subject: [PATCH] Fix "Export selected" is inactive after contact delete (#1488906)

---
 program/js/app.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index b171484..6868686 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4227,12 +4227,10 @@
       target = win;
       this.show_contentframe(true);
 
-      // load dummy content
-      if (!cid) {
-        // unselect selected row(s)
+      // load dummy content, unselect selected row(s)
+      if (!cid)
         this.contact_list.clear_selection();
-        this.enable_command('delete', 'compose', false);
-      }
+      this.enable_command('delete', 'compose', 'export-selected', cid);
     }
     else if (framed)
       return false;

--
Gitblit v1.9.1