More fixes related to crashes when running actions when no map is opened

This commit is contained in:
biwa 2022-05-29 17:30:54 +02:00
parent 59de9762ad
commit 90cdb7db55

View file

@ -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);
}