fix crash opening page through File/Open dialog from blank context. r:law
git-svn-id: svn://10.0.0.236/trunk@12227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5ebe577cad
commit
9f0d27491e
@ -5898,22 +5898,20 @@ EDT_SyncEditHistory(MWContext * pMWContext)
|
||||
}
|
||||
|
||||
History_entry * pEntry = SHIST_GetCurrent(&(pMWContext->hist));
|
||||
if(pEntry )
|
||||
|
||||
// Must have an address
|
||||
if( !pEntry || !pEntry->address || !*pEntry->address )
|
||||
return;
|
||||
|
||||
// Test for new document URL: file://Untitled and ignore it
|
||||
if( !XP_STRCMP(XP_GetString(XP_EDIT_NEW_DOC_NAME), pEntry->address) ||
|
||||
!XP_STRCMP(XP_GetString(XP_EDIT_NEW_DOC_URL), pEntry->address))
|
||||
{
|
||||
// Must have an address
|
||||
if( !pEntry->address || !*pEntry->address )
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
// Test for new document URL: file://Untitled and ignore it
|
||||
if( !XP_STRCMP(XP_GetString(XP_EDIT_NEW_DOC_NAME), pEntry->address) ||
|
||||
!XP_STRCMP(XP_GetString(XP_EDIT_NEW_DOC_URL), pEntry->address))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if( pEntry->title && *pEntry->title ){
|
||||
pTitle = pEntry->title;
|
||||
}
|
||||
if( pEntry->title && *pEntry->title ){
|
||||
pTitle = pEntry->title;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user