From 2286afa6b29941a8c69c2ae3fe1b5ec335f1a733 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Tue, 8 Jul 2014 16:33:40 -0400 Subject: [PATCH] Fix some details of the 'Copy To' dialog for Export Table --- .../Editors/UnrealEngine/UnrealPackageEditor.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs index 2bde3832..8265e612 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs @@ -229,10 +229,13 @@ namespace UniversalEditor.Editors.UnrealEngine if (ete == null) continue; SaveFileDialog sfd = new SaveFileDialog(); - sfd.Title = "Copy '" + ete.Name + "' to..."; + sfd.Title = "Copy '" + ete.Name.Name + "' to..."; + sfd.FileName = ete.Name.Name; if (sfd.ShowDialog() == DialogResult.OK) { - System.IO.File.WriteAllBytes(sfd.FileName, ete.GetData()); + byte[] data = ete.GetData(); + if (data == null) data = new byte[0]; + System.IO.File.WriteAllBytes(sfd.FileName, data); } } }