- //_dpl2(_dpct, dplchan::debuggerCall, 0, "Debugger::WatchesCodeEditorLinkInit()");
- /*
- char tempPath[MAX_LOCATION];
- char path[MAX_LOCATION];
-
- //void MakeFilePathProjectRelative(char * path, char * relativePath)
- if(!ide.projectView.project.GetRelativePath(activeFrame.file, tempPath))
- strcpy(tempPath, activeFrame.file);
-
- strcpy(path, ide.workspace.projectDir);
- PathCat(path, tempPath);
- codeEditor = (CodeEditor)ide.OpenFile(path, Normal, false, null, no, normal, false);
- if(!codeEditor)
+ bool goodFrame = activeFrame && activeFrame.absoluteFile;
+ //_dpl2(_dpct, dplchan::debuggerCall, 0, "Debugger::WatchesLinkCodeEditor()");
+ if(codeEditor && (!goodFrame || fstrcmp(codeEditor.fileName, activeFrame.absoluteFile)))
+ WatchesReleaseCodeEditor();
+
+ if(!codeEditor && goodFrame)