From 90cdb7db5517eedd9755272a878c23830b5525f2 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Sun, 29 May 2022 17:30:54 +0200 Subject: [PATCH] More fixes related to crashes when running actions when no map is opened --- Source/Core/Windows/MainForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Windows/MainForm.cs b/Source/Core/Windows/MainForm.cs index adfebeb9..cf3cc924 100755 --- a/Source/Core/Windows/MainForm.cs +++ b/Source/Core/Windows/MainForm.cs @@ -3143,6 +3143,9 @@ namespace CodeImp.DoomBuilder.Windows [BeginAction("viewusedtags")] internal void ViewUsedTags() { + if (General.Map == null) + return; + TagStatisticsForm f = new TagStatisticsForm(); f.ShowDialog(this); } @@ -3151,6 +3154,9 @@ namespace CodeImp.DoomBuilder.Windows [BeginAction("viewthingtypes")] internal void ViewThingTypes() { + if (General.Map == null) + return; + ThingStatisticsForm f = new ThingStatisticsForm(); f.ShowDialog(this); }