hack to allow us to open file names passed on the commandline, which broke somehow
This commit is contained in:
parent
f06b776502
commit
4e31a99662
@ -608,7 +608,8 @@ namespace UniversalEditor.UserInterface
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Error.WriteLine("ue: accessor not found for path " + fileNames[i]);
|
||||
Console.Error.WriteLine("ue: accessor not found for path " + fileNames[i] + "; assuming local file");
|
||||
loadedDocuments.Add(new Document(new FileAccessor(fileNames[i])));
|
||||
}
|
||||
}
|
||||
OpenWindow(loadedDocuments.ToArray());
|
||||
|
||||
@ -267,7 +267,15 @@ namespace UniversalEditor.UserInterface
|
||||
|
||||
private void dckContainer_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
Editor editor = GetCurrentEditor ();
|
||||
Editor editor = null;
|
||||
try
|
||||
{
|
||||
editor = GetCurrentEditor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
|
||||
if (editor == null) {
|
||||
Console.WriteLine ("Editor is null");
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user