fix some bugs with external tools

svn path=/trunk/tools/reactosdbg/; revision=1047
This commit is contained in:
Christoph von Wittich 2009-06-09 08:42:36 +00:00
parent 6749972535
commit d74d4f9ea2
2 changed files with 5 additions and 4 deletions

View File

@ -40,7 +40,8 @@ namespace RosDBG
mAddRemove = true;
ExternalTool t = new ExternalTool();
ToolsListBox.Items.Add(t);
ToolsListBox.SelectedIndex = ToolsListBox.Items.Count - 1;
mExternalToolsList.Add(t);
ToolsListBox.SelectedIndex = ToolsListBox.Items.Count - 1;
btnRemove.Enabled = true;
mAddRemove = false;
}
@ -71,7 +72,7 @@ namespace RosDBG
private void SaveItem(int Idx)
{
if (!mAddRemove)
if ((!mAddRemove) && (Idx >= 0))
{
ExternalTool item = new ExternalTool(txtTitle.Text, txtPath.Text);
mUpdatingList = true;

View File

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// will be increased as well. MSI installers must not be generated with the same Build Number
// otherwise they won't upgrade the old installation!
[assembly: AssemblyVersion("1.0.2.61")]
[assembly: AssemblyFileVersion("1.0.2.61")]
[assembly: AssemblyVersion("1.0.2.62")]
[assembly: AssemblyFileVersion("1.0.2.62")]