зеркало из https://github.com/mozilla/pjs.git
122416: don't open same file at same time
This commit is contained in:
Родитель
5a4e7b9a5d
Коммит
711df234ca
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче