From 0e7a74158fc73bcea1f2c7e0a67a579059541564 Mon Sep 17 00:00:00 2001 From: MaxED Date: Thu, 21 Mar 2013 11:28:50 +0000 Subject: [PATCH] We should save LastUsedConfigName only when creating a new map... --- Source/Core/Windows/MapOptionsForm.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/Windows/MapOptionsForm.cs b/Source/Core/Windows/MapOptionsForm.cs index 40252546..0fb8aa94 100644 --- a/Source/Core/Windows/MapOptionsForm.cs +++ b/Source/Core/Windows/MapOptionsForm.cs @@ -120,12 +120,14 @@ namespace CodeImp.DoomBuilder.Windows // Collect information ConfigurationInfo configinfo = General.Configs[config.SelectedIndex]; DataLocationList locations = datalocations.GetResources(); - General.Settings.LastUsedConfigName = configinfo.Name; // When making a new map, check if we should warn the user for missing resources - if(newmap && (locations.Count == 0) && (configinfo.Resources.Count == 0)) + if(newmap) { - if(MessageBox.Show(this, "You are about to make a map without selecting any resources. Textures, flats and " + + General.Settings.LastUsedConfigName = configinfo.Name; //mxd + + if((locations.Count == 0) && (configinfo.Resources.Count == 0) && + MessageBox.Show(this, "You are about to make a map without selecting any resources. Textures, flats and " + "sprites may not be shown correctly or may not show up at all. Do you want to continue?", Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.No) {