Skip to content

Commit f4994a4

Browse files
committed
* Fixed an issue with the removal of a gridview column
1 parent 70451a1 commit f4994a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Advanced PassGen/Windows/MainWindow.xaml.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ internal void LoadSettings()
7474
TxtCharacterSet.Text = Properties.Settings.Default.CharacterSet;
7575
if (!Properties.Settings.Default.ShowPasswordStrength)
7676
{
77-
DynGrid.Columns.RemoveAt(2);
77+
if (DynGrid.Columns.Count == 3)
78+
{
79+
DynGrid.Columns.RemoveAt(2);
80+
}
7881
}
7982
else
8083
{

0 commit comments

Comments
 (0)