Update of /cvsroot/mahogany/M/src/adb
In directory usw-pr-cvs1:/tmp/cvs-serv17721/src/adb
Modified Files:
Collect.cpp
Log Message:
don't propose the user to choose addresses if there is only one of them
Index: Collect.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/Collect.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- Collect.cpp 14 Apr 2002 09:02:39 -0000 1.10
+++ Collect.cpp 26 Apr 2002 23:10:41 -0000 1.11
@@ -313,11 +313,12 @@
// by default, select all addresses
wxArrayInt selections;
- size_t n,
- count = addresses.GetCount();
- for ( n = 0; n < count; n++ )
+ size_t count = addresses.GetCount();
+ for ( size_t n = 0; n < count; n++ )
{
selections.Add(n);
}
+ if ( count > 1 )
+ {
// now ask the user which ones does he really want
count = MDialog_GetSelections
@@ -330,4 +331,6 @@
"AddrExtract"
);
+ }
+ //else: don't ask the user to choose when there is one address only
if ( count > 0 )
@@ -374,5 +377,5 @@
// create all entries in this group
- for ( n = 0; n < count; n++ )
+ for ( size_t n = 0; n < count; n++ )
{
wxString addr = addresses[selections[n]];
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates