mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-07 08:21:59 +00:00
Fixed a bug with argument boxes where the value wasn't saved correctly when using the mouse wheel to change the value
This commit is contained in:
parent
b094786100
commit
82af8bfe56
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,7 @@ namespace CodeImp.DoomBuilder.Controls
|
||||||
|
|
||||||
private TypeHandler typehandler;
|
private TypeHandler typehandler;
|
||||||
private bool ignorebuttonchange;
|
private bool ignorebuttonchange;
|
||||||
|
private bool forcevalidate;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -136,6 +137,11 @@ namespace CodeImp.DoomBuilder.Controls
|
||||||
combobox_Validating(sender, new CancelEventArgs());
|
combobox_Validating(sender, new CancelEventArgs());
|
||||||
button.Image = typehandler.BrowseImage;
|
button.Image = typehandler.BrowseImage;
|
||||||
}
|
}
|
||||||
|
else if(forcevalidate)
|
||||||
|
{
|
||||||
|
forcevalidate = false;
|
||||||
|
combobox_Validating(sender, new CancelEventArgs());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mouse wheel used
|
// Mouse wheel used
|
||||||
|
@ -148,6 +154,10 @@ namespace CodeImp.DoomBuilder.Controls
|
||||||
else if(e.Delta > 0)
|
else if(e.Delta > 0)
|
||||||
scrollbuttons.Value -= 1;
|
scrollbuttons.Value -= 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
forcevalidate = true; // Make sure that the value is validated
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scroll buttons clicked
|
// Scroll buttons clicked
|
||||||
|
|
Loading…
Reference in a new issue