well . . . that is pretty important

This commit is contained in:
Michael Becker 2019-12-12 00:13:57 -05:00
parent fae0781c74
commit 7811408db6
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -215,7 +215,14 @@ namespace UniversalEditor.UserInterface.Panels
}
else if (file != null)
{
Engine.CurrentEngine.LastWindow.OpenFile(file.SourceFileName);
if (String.IsNullOrEmpty(file.SourceFileName))
{
MessageDialog.ShowDialog("TODO: Implement OpenDocument() call so we can open embedded files (i.e. that do not actually exist as 'files')", "NOT IMPLEMENTED", MessageDialogButtons.OK, MessageDialogIcon.Error);
}
else
{
Engine.CurrentEngine.LastWindow.OpenFile(file.SourceFileName);
}
}
else if (folder != null)
{