SF.net SVN: mahogany: [7330] trunk/M/src/mail/MimeDecode.cpp

[email protected] Tue, 21 Aug 2007 14:36:16 -0700
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7330
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7330&view=rev
Author:   vadz
Date:     2007-08-21 14:36:15 -0700 (Tue, 21 Aug 2007)

Log Message:
-----------
don't ask the user when decoding headers, we can be inside c-client when this happens and it's unsafe to show any dialogs then

Modified Paths:
--------------
    trunk/M/src/mail/MimeDecode.cpp

Modified: trunk/M/src/mail/MimeDecode.cpp
===================================================================
--- trunk/M/src/mail/MimeDecode.cpp	2007-08-21 15:51:45 UTC (rev 7329)
+++ trunk/M/src/mail/MimeDecode.cpp	2007-08-21 21:36:15 UTC (rev 7330)
@@ -97,8 +97,11 @@
             break;
          }
 
+         // pass false to prevent asking the user from here: we can be called
+         // during non-interactive operations and popping up a dialog for an
+         // unknown charset can be inappropriate
          const wxFontEncoding
-            encodingWord = wxFontMapper::Get()->CharsetToEncoding(csName);
+            encodingWord = wxFontMapper::Get()->CharsetToEncoding(csName, false);
 
          if ( encodingWord == wxFONTENCODING_SYSTEM )
          {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/