auto-focus in map options dialog when a problem occurs

This commit is contained in:
codeimp 2007-06-14 23:34:31 +00:00
parent 776a52b50f
commit e2b3f464f3
2 changed files with 3 additions and 1 deletions

View file

@ -3,8 +3,8 @@ mainwindow
{
positionx = 27;
sizeheight = 572;
positiony = 15;
windowstate = 2;
sizewidth = 739;
positiony = 15;
}

View file

@ -55,6 +55,7 @@ namespace CodeImp.DoomBuilder.Interface
{
// Select a configuration!
MessageBox.Show(this, "Please select a game configuration to use for editing your map.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
config.Focus();
return;
}
@ -63,6 +64,7 @@ namespace CodeImp.DoomBuilder.Interface
{
// Enter a level name!
MessageBox.Show(this, "Please enter a level name for your map.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
levelname.Focus();
return;
}