Don't show about:blank to users.

This commit is contained in:
pinkerton%netscape.com 2002-07-29 19:19:43 +00:00
Родитель a023eac2c8
Коммит 128246c814
4 изменённых файлов: 8 добавлений и 40 удалений

Просмотреть файл

@ -930,16 +930,8 @@ static NSArray* sToolbarDefaults = nil;
- (void)updateLocationFields:(NSString *)locationString
{
/* //commenting this out because it doesn't work right yet.
if ( [locationString length] > 30 ) {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@...", [locationString substringToIndex:31]]];
} else {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@", locationString]];
}
*/
if ( [locationString isEqual:@"about:blank"] ) // don't show about:blank to users
locationString = @"";
[mURLBar setString:locationString];
[mLocationSheetURLField setStringValue:locationString];

Просмотреть файл

@ -930,16 +930,8 @@ static NSArray* sToolbarDefaults = nil;
- (void)updateLocationFields:(NSString *)locationString
{
/* //commenting this out because it doesn't work right yet.
if ( [locationString length] > 30 ) {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@...", [locationString substringToIndex:31]]];
} else {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@", locationString]];
}
*/
if ( [locationString isEqual:@"about:blank"] ) // don't show about:blank to users
locationString = @"";
[mURLBar setString:locationString];
[mLocationSheetURLField setStringValue:locationString];

Просмотреть файл

@ -930,16 +930,8 @@ static NSArray* sToolbarDefaults = nil;
- (void)updateLocationFields:(NSString *)locationString
{
/* //commenting this out because it doesn't work right yet.
if ( [locationString length] > 30 ) {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@...", [locationString substringToIndex:31]]];
} else {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@", locationString]];
}
*/
if ( [locationString isEqual:@"about:blank"] ) // don't show about:blank to users
locationString = @"";
[mURLBar setString:locationString];
[mLocationSheetURLField setStringValue:locationString];

Просмотреть файл

@ -930,16 +930,8 @@ static NSArray* sToolbarDefaults = nil;
- (void)updateLocationFields:(NSString *)locationString
{
/* //commenting this out because it doesn't work right yet.
if ( [locationString length] > 30 ) {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@...", [locationString substringToIndex:31]]];
} else {
[[mLocationToolbarItem menuFormRepresentation] setTitle:
[NSString stringWithFormat:@"Location: %@", locationString]];
}
*/
if ( [locationString isEqual:@"about:blank"] ) // don't show about:blank to users
locationString = @"";
[mURLBar setString:locationString];
[mLocationSheetURLField setStringValue:locationString];