Fixed problem with .lay, .iml switching to text mode while debugging (too much..)

git-svn-id: svn://ultimatepp.org/upp/trunk@1188 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-05-15 18:36:42 +00:00
commit 8c3305356e

View file

@ -360,8 +360,9 @@ void Ide::EditFile0(const String& path, byte charset, bool astext, const String&
editfile = path;
editor.SetCharset(charset);
AddLru();
if(!astext && !debugger && editastext.Find(path) < 0 && !IsNestReadOnly(editfile)) {
if(!astext && !(debugger && (PathIsEqual(path, posfile[0]) || PathIsEqual(path, posfile[0])))
&& editastext.Find(path) < 0 && !IsNestReadOnly(editfile)) {
for(int i = 0; i < GetIdeModuleCount() && !designer; i++)
designer = GetIdeModule(i).CreateDesigner(this, path, charset);
if(designer) {