Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11365/src/classes
Modified Files:
MessageView.cpp
Log Message:
automatically select the viewer best fit for the shown message
Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.165
retrieving revision 1.166
diff -b -u -2 -r1.165 -r1.166
--- MessageView.cpp 24 Jun 2005 00:06:11 -0000 1.165
+++ MessageView.cpp 25 Jun 2005 15:30:30 -0000 1.166
@@ -2784,7 +2784,7 @@
}
+ // see HandleProcessTermination() for the explanation of "possibly"
wxString errmsg;
- errmsg.Printf(_("Error opening attachment: command '%s' failed"),
- command.c_str());
+ errmsg.Printf(_("External viewer \"%s\" possibly failed"), command.c_str());
(void)LaunchProcess(command, errmsg, filename);
}
@@ -3603,6 +3603,14 @@
if ( exitcode != 0 )
{
- wxLogError(_("%s (external viewer exited with non null exit code)"),
- info->GetErrorMsg().c_str());
+ // don't make this a wxLogError because too many Windows apps (most
+ // annoyingly, Acrobat Reader which is used very often to view PDFs) do
+ // exit with non zero exit code if they simply forward the file via DDE
+ // to another (already running) instance instead of showing it themselves
+ //
+ // so just warn the user about it...
+ wxLogStatus(GetParentFrame(),
+ _("%s (non null exit code %d)"),
+ info->GetErrorMsg().c_str(),
+ exitcode);
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates