Changeset 839474


Ignore:
Timestamp:
Aug 25, 2014, 2:34:47 PM (6 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
54ce49
Parents:
a64166
Message:

call stage2 directly if window gets reopened

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/v_identity.js

    ra64166 r839474  
    296296        vI.vIprefs.dropLocalChanges();
    297297
    298         // stateListener only works in reply-cases
    299         // so activate stage2 in reply-cases trough StateListener
    300         // in other cases directly
    301         // (but StateListener is required for Cleanup, so register)
    302         var msgComposeType = Components.interfaces.nsIMsgCompType;
    303         switch (gMsgCompose.type) {
    304             case msgComposeType.New:
    305             case msgComposeType.NewsPost:
    306             case msgComposeType.MailToUrl:
    307             case msgComposeType.Draft:
    308             case msgComposeType.Template:
    309             case msgComposeType.ForwardAsAttachment:
    310             case msgComposeType.ForwardInline:
    311                 main.initSystemStage2();
    312             case msgComposeType.Reply:
    313             case msgComposeType.ReplyAll:
    314             case msgComposeType.ReplyToGroup:
    315             case msgComposeType.ReplyToSender:
    316             case msgComposeType.ReplyToSenderAndGroup:
    317             case msgComposeType.ReplyWithTemplate:
    318             case msgComposeType.ReplyToList:
    319                 gMsgCompose.RegisterStateListener(main.ComposeStateListener);
    320         }
     298        // stateListener sometimes does not work at all - just trying to call stage2 directly
     299//      // stateListener only works in reply-cases
     300//      // so activate stage2 in reply-cases trough StateListener
     301//      // in other cases directly
     302//         // (but StateListener is required for Cleanup, so register)
     303//      var msgComposeType = Components.interfaces.nsIMsgCompType;
     304//      switch (gMsgCompose.type) {
     305//          case msgComposeType.New:
     306//          case msgComposeType.NewsPost:
     307//          case msgComposeType.MailToUrl:
     308//          case msgComposeType.Draft:
     309//          case msgComposeType.Template:
     310//          case msgComposeType.ForwardAsAttachment:
     311//          case msgComposeType.ForwardInline:
     312//              main.initSystemStage2();
     313//          case msgComposeType.Reply:
     314//          case msgComposeType.ReplyAll:
     315//          case msgComposeType.ReplyToGroup:
     316//          case msgComposeType.ReplyToSender:
     317//          case msgComposeType.ReplyToSenderAndGroup:
     318//          case msgComposeType.ReplyWithTemplate:
     319//          case msgComposeType.ReplyToList:
     320//              gMsgCompose.RegisterStateListener(main.ComposeStateListener);
     321//      }
     322        main.initSystemStage2();
    321323        Log.debug("reopen done.")
    322324    },
Note: See TracChangeset for help on using the changeset viewer.