Fix double click error in msglist if no messages available.
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 22 Feb 2009 00:25:53 +0000 (17:25 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 22 Feb 2009 00:43:04 +0000 (17:43 -0700)
imp/js/src/DimpBase.js

index 6696c0c..bb84024 100644 (file)
@@ -1472,8 +1472,10 @@ var DimpBase = {
                     if (!orig.hasClassName('msgRow')) {
                         orig = orig.up('.msgRow');
                     }
-                    tmp = this.viewport.createSelection('domid', orig.identify()).get('dataob').first();
-                    tmp.draft ? DimpCore.compose('resume', { folder: tmp.view, uid: tmp.imapuid }) : this.msgWindow(tmp);
+                    if (orig) {
+                        tmp = this.viewport.createSelection('domid', orig.identify()).get('dataob').first();
+                        tmp.draft ? DimpCore.compose('resume', { folder: tmp.view, uid: tmp.imapuid }) : this.msgWindow(tmp);
+                    }
                     e.stop();
                     return;
                 }