122416: don't open same file at same time

This commit is contained in:
akkana%netscape.com 1998-10-08 21:32:18 +00:00
Родитель 5a4e7b9a5d
Коммит 711df234ca
1 изменённых файлов: 2 добавлений и 5 удалений

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

@ -938,7 +938,6 @@ XFE_EditorFrame::isCommandSelected(CommandType cmd,
else if (cmd == xfeCmdSetAlignmentStyleCenter) else if (cmd == xfeCmdSetAlignmentStyleCenter)
{ {
printf("Checking for center alignment\n");
return (EDT_GetParagraphAlign(getContext()) == ED_ALIGN_CENTER); return (EDT_GetParagraphAlign(getContext()) == ED_ALIGN_CENTER);
} }
@ -1268,10 +1267,8 @@ fe_editor_find_context(char* address, int type)
// "/dir/file.html" == "file:/dir/file.html" // "/dir/file.html" == "file:/dir/file.html"
// "/dir/file.html" == "file:///dir/file.html" // "/dir/file.html" == "file:///dir/file.html"
// //
if (hist_address != NULL && if (hist_address != NULL && address != NULL &&
(XP_STRCMP(hist_address, address) == 0 /* exact */ EDT_IsSameURL(hist_address, address,0,0)
)
) )
return context; return context;
} }