mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed, Open Map Option window: a warning message is now displayed when the editor fails to find any maps in the wad being open.
Fixed, Open Map Option window: fixed a crash when switching to a map configuration with long texture names support enabled when the wad being open has no maps (this will probably never happen because of previous change, but let's be on the safe side...).
This commit is contained in:
parent
8643d2dd82
commit
8cf084fc41
1 changed files with 9 additions and 1 deletions
|
@ -180,6 +180,14 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
}
|
||||
}
|
||||
|
||||
//mxd. Bail out if still no dice...
|
||||
if(config.SelectedIndex == -1)
|
||||
{
|
||||
this.Visible = false;
|
||||
General.ShowWarningMessage("Unable to find maps using any game configuration.\nDoes this wad contain any maps at all?..", MessageBoxButtons.OK);
|
||||
cancel_Click(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
// Done
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
|
@ -353,7 +361,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
|
||||
// Update long texture names checkbox (mxd)
|
||||
longtexturenames.Enabled = cfg.ReadSetting("longtexturenames", false);
|
||||
longtexturenames.Checked = longtexturenames.Enabled && options.UseLongTextureNames;
|
||||
longtexturenames.Checked = (longtexturenames.Enabled && options != null && options.UseLongTextureNames);
|
||||
}
|
||||
|
||||
// OK clicked
|
||||
|
|
Loading…
Reference in a new issue