Revision: 7205
http://svn.sourceforge.net/mahogany/?rev=7205&view=rev
Author: vadz
Date: 2007-01-08 14:00:36 -0800 (Mon, 08 Jan 2007)
Log Message:
-----------
reverse the order of standard initial headers in the code so that they appear in the expected order in the UI
Modified Paths:
--------------
trunk/M/src/gui/wxComposeView.cpp
Modified: trunk/M/src/gui/wxComposeView.cpp
===================================================================
--- trunk/M/src/gui/wxComposeView.cpp 2007-01-08 21:23:41 UTC (rev 7204)
+++ trunk/M/src/gui/wxComposeView.cpp 2007-01-08 22:00:36 UTC (rev 7205)
@@ -2201,15 +2201,15 @@
// set def values for all headers
SetDefaultFrom();
- // don't add default "To:" header if this is a reply, this usually just
- // results in address duplication
- if ( m_kind != Message_Reply )
- AddTo(READ_CONFIG(m_Profile, MP_COMPOSE_TO));
+ // do it in the reverse order so that the most important header (To) is
+ // added last and so appears first/top-most in the UI
+ if ( READ_CONFIG(m_Profile, MP_USEOUTGOINGFOLDER) )
+ AddFcc(READ_CONFIG_TEXT(m_Profile, MP_OUTGOINGFOLDER));
+
+ AddBcc(READ_CONFIG(m_Profile, MP_COMPOSE_BCC));
AddCc(READ_CONFIG(m_Profile, MP_COMPOSE_CC));
- AddBcc(READ_CONFIG(m_Profile, MP_COMPOSE_BCC));
- if ( READ_CONFIG(m_Profile, MP_USEOUTGOINGFOLDER) )
- AddFcc(READ_CONFIG_TEXT(m_Profile, MP_OUTGOINGFOLDER));
+ AddTo(READ_CONFIG(m_Profile, MP_COMPOSE_TO));
}
/// create the compose window itself
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.