fix crash loading empty tab group as we'd try to do validation on non-existant
web browser (all tabs had been removed) (bug 290874) git-svn-id: svn://10.0.0.236/trunk@172526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
16d8008dcd
commit
1892bff1eb
@ -2615,6 +2615,11 @@ enum BWCOpenDest {
|
||||
|
||||
-(void) openURLArrayReplacingTabs:(NSArray*)urlArray closeExtraTabs:(BOOL)closeExtra allowPopups:(BOOL)inAllowPopups
|
||||
{
|
||||
// if there are no urls to load (say, an empty tab group), just bail outright. otherwise we'd be
|
||||
// left with no tabs at all and hell to pay when it came time to do menu/toolbar item validation.
|
||||
if (![urlArray count])
|
||||
return;
|
||||
|
||||
[self openURLArray:urlArray replaceExistingTabs:YES allowPopups:inAllowPopups];
|
||||
if (closeExtra) {
|
||||
int closeIndex = [urlArray count];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user