From 7811408db6ab3551b11c5368e24c1b42c8da93d6 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Thu, 12 Dec 2019 00:13:57 -0500 Subject: [PATCH] well . . . that is pretty important --- .../Panels/SolutionExplorerPanel.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Panels/SolutionExplorerPanel.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Panels/SolutionExplorerPanel.cs index b713323e..c00cc336 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Panels/SolutionExplorerPanel.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Panels/SolutionExplorerPanel.cs @@ -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) {