Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv10081/src/gui
Modified Files:
wxComposeView.cpp
Log Message:
ignore empty address controls (bug 841)
Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.350
retrieving revision 1.351
diff -b -u -2 -r1.350 -r1.351
--- wxComposeView.cpp 6 Oct 2003 00:38:54 -0000 1.350
+++ wxComposeView.cpp 7 Oct 2003 11:41:10 -0000 1.351
@@ -2398,5 +2398,7 @@
}
-// helper of GetRecipients()
+// helper of GetRecipients(): add the address from this control if it is of
+// correct type, to the address string, separating it from the previous
+// addresses if necessary
static void
GetRecipientFromControl(wxComposeView::RecipientType type,
@@ -2406,8 +2408,12 @@
if ( rcpt->GetType() == type )
{
+ wxString value = rcpt->GetValue();
+ if ( !value.empty() )
+ {
if ( !address.empty() )
address += CANONIC_ADDRESS_SEPARATOR;
address += rcpt->GetValue();
+ }
}
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates