Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv12384/src/gui

Modified Files:
        wxMessageView.cpp 
Log Message:
show the popup menu title correctly for the URLs without the scheme part

Index: wxMessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMessageView.cpp,v
retrieving revision 1.285
retrieving revision 1.286
diff -b -u -2 -r1.285 -r1.286
--- wxMessageView.cpp   14 Sep 2002 22:07:46 -0000      1.285
+++ wxMessageView.cpp   6 Nov 2002 00:26:01 -0000       1.286
@@ -175,5 +175,12 @@
       else // !mailto
       {
-         title = url.BeforeFirst(':').Upper() + _(" url");
+         title = url.BeforeFirst(':').Upper();
+         if ( title.length() == url.length() )
+         {
+            // no ':' in the URL, so it must be HTTP by default
+            title = _T("HTTP");
+         }
+
+         title += _(" url");
       }
 



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to