baseWindow might no longer exist, so check for that
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 27 Jan 2010 20:37:50 +0000 (13:37 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 27 Jan 2010 20:37:50 +0000 (13:37 -0700)
imp/js/compose-dimp.js

index be38528..2c82d9c 100644 (file)
@@ -280,7 +280,7 @@ var DimpCompose = {
                 break;
 
             case 'send_message':
-                if (this.is_popup) {
+                if (this.is_popup && DIMP.baseWindow.DimpBase) {
                     if (d.reply_type) {
                         DIMP.baseWindow.DimpBase.flag(d.reply_type == 'reply' ? '\\answered' : '$forwarded', true, { uid: d.uid, mailbox: d.reply_folder, noserver: true });
                     }