Skip to content

Commit

Permalink
KPEnhancedListview Version 0.9.0.1
Browse files Browse the repository at this point in the history
Issue 1 Cancel New String Dialog crash fixed
  • Loading branch information
GlaserFrank authored and GlaserFrank committed Mar 27, 2010
1 parent a46d2ba commit 0a9fb25
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
Binary file modified KPEnhancedListview/Build/Release/KPEnhancedListview.dll
Binary file not shown.
Binary file modified KPEnhancedListview/Build/Release/KPEnhancedListview.pdb
Binary file not shown.
21 changes: 12 additions & 9 deletions KPEnhancedListview/InputBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,19 @@ private void InitializeComponent()
private void OnButtonClickNew(object sender, EventArgs e)
{
string str = InputBox.Show("Add Column", "Add Column", "CustomColumn");
if (!this.lbInput.Items.Contains(str))
if (str != null)
{
int i = this.lbInput.Items.Add(str);
this.lbInput.ClearSelected();
this.lbInput.SetSelected(i, true);
}
else
{
this.lbInput.ClearSelected();
this.lbInput.SetSelected(this.lbInput.Items.IndexOf(str), true);
if (!this.lbInput.Items.Contains(str))
{
int i = this.lbInput.Items.Add(str);
this.lbInput.ClearSelected();
this.lbInput.SetSelected(i, true);
}
else
{
this.lbInput.ClearSelected();
this.lbInput.SetSelected(this.lbInput.Items.IndexOf(str), true);
}
}
}
}
Expand Down
Binary file modified KPEnhancedListview/KPEnhancedListviewSolution.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion KPEnhancedListview/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ You should have received a copy of the GNU General Public License

// Assembly version information
[assembly: AssemblyVersion("2.1.0.*")]
[assembly: AssemblyFileVersion("0.9.0.0")]
[assembly: AssemblyFileVersion("0.9.0.1")]

0 comments on commit 0a9fb25

Please sign in to comment.