From e2b3f464f31608188d147234370d9f8d669a5a9c Mon Sep 17 00:00:00 2001 From: codeimp Date: Thu, 14 Jun 2007 23:34:31 +0000 Subject: [PATCH] auto-focus in map options dialog when a problem occurs --- Build/Builder.cfg | 2 +- Source/Interface/MapOptionsForm.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Build/Builder.cfg b/Build/Builder.cfg index 7861f0b7..564e1359 100644 --- a/Build/Builder.cfg +++ b/Build/Builder.cfg @@ -3,8 +3,8 @@ mainwindow { positionx = 27; sizeheight = 572; - positiony = 15; windowstate = 2; sizewidth = 739; + positiony = 15; } diff --git a/Source/Interface/MapOptionsForm.cs b/Source/Interface/MapOptionsForm.cs index 7deffc1a..720a5683 100644 --- a/Source/Interface/MapOptionsForm.cs +++ b/Source/Interface/MapOptionsForm.cs @@ -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; }