From 0a909fb722f2089a90d202d83558b4f271626944 Mon Sep 17 00:00:00 2001
From: JohnDoh <roundcube@tehinterweb.co.uk>
Date: Thu, 13 Nov 2014 04:14:12 -0500
Subject: [PATCH] check to see if the content frame exists before loading a contact

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

diff --git a/program/js/app.js b/program/js/app.js
index 31544ab..984dddf 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4704,7 +4704,7 @@
       source = this.env.source ? this.env.address_sources[this.env.source] : null;
 
     // we don't have dblclick handler here, so use 200 instead of this.dblclick_time
-    if (id = list.get_single_selection())
+    if (this.env.contentframe && (id = list.get_single_selection()))
       this.preview_timer = setTimeout(function(){ ref.load_contact(id, 'show'); }, 200);
     else if (this.env.contentframe)
       this.show_contentframe(false);

--
Gitblit v1.9.1