summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-05 07:16:46 +0000
committeralecpl <alec@alec.pl>2010-10-05 07:16:46 +0000
commit12daf6ddf560625aca14f268994f993782125a81 (patch)
tree8d9d2f91fa71c877348472be65419c47ab3fcadc
parent538e1c85d214e1ac9e261e8cd20c369a312d4900 (diff)
- Fix for Konqueror
-rw-r--r--program/js/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 85cf68a4d..d3e587b75 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -68,7 +68,7 @@ function rcmail_editor_callback()
if (elem && elem.type=='select-one') {
rcmail.change_identity(elem);
// Focus previously focused element
- if (rcmail.env.compose_focus_elem.id != rcmail.env.composebody)
+ if (rcmail.env.compose_focus_elem && rcmail.env.compose_focus_elem.id != rcmail.env.composebody)
rcmail.env.compose_focus_elem.focus();
}
// set tabIndex and set focus to element that was focused before