Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9612/include/gui
Modified Files:
wxComposeView.h
Log Message:
retain the compose template after identity change if it was specified manually
and not read from profile (bug 915)
Index: wxComposeView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxComposeView.h,v
retrieving revision 1.106
retrieving revision 1.107
diff -b -u -2 -r1.106 -r1.107
--- wxComposeView.h 12 Feb 2006 16:50:03 -0000 1.106
+++ wxComposeView.h 12 Feb 2006 17:19:47 -0000 1.107
@@ -100,5 +100,11 @@
@param templ the name of the template
*/
- void SetTemplate(const String& templ) { m_template = templ; }
+ void SetTemplate(const String& templ)
+ {
+ m_template = templ;
+
+ // don't forget m_template now, even if our identity changes
+ m_customTemplate = true;
+ }
/**
@@ -504,4 +510,7 @@
String m_template;
+ /// True if m_template was specified by the user (and not read from profile)
+ bool m_customTemplate;
+
/// the text to be quoted in a reply/followup (may be empty)
String m_textToQuote;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates