mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 03:41:47 +00:00
Fixed a crash when changing the testing engine on Linux. Fixes #1042
This commit is contained in:
parent
0fa3230157
commit
c5ad8e75c6
1 changed files with 10 additions and 1 deletions
|
@ -24,6 +24,7 @@ using System.Drawing;
|
|||
using System.Drawing.Imaging;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
@ -1575,7 +1576,15 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// This updates the skills list
|
||||
private void UpdateSkills()
|
||||
{
|
||||
// Clear list
|
||||
// Clear list. Mono Winforms apparently tries to redraw the PlaceholderToolStripTextBox
|
||||
// after it got removed, so let us manually dispose it, which seems to fix the probelm.
|
||||
for (int i=0; i < buttontest.DropDownItems.Count; i++)
|
||||
{
|
||||
if (buttontest.DropDownItems[i] is PlaceholderToolStripTextBox item)
|
||||
{
|
||||
item.Dispose();
|
||||
}
|
||||
}
|
||||
buttontest.DropDownItems.Clear();
|
||||
|
||||
// Map loaded?
|
||||
|
|
Loading…
Reference in a new issue