diff options
-rw-r--r-- | win/C#/Controls/AudioPanel.Designer.cs | 1 | ||||
-rw-r--r-- | win/C#/Controls/AudioPanel.cs | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/win/C#/Controls/AudioPanel.Designer.cs b/win/C#/Controls/AudioPanel.Designer.cs index 3349ab488..43e5ba8ec 100644 --- a/win/C#/Controls/AudioPanel.Designer.cs +++ b/win/C#/Controls/AudioPanel.Designer.cs @@ -346,6 +346,7 @@ namespace Handbrake.Controls //
this.audioList.AllowUserToAddRows = false;
this.audioList.AllowUserToResizeColumns = false;
+ this.audioList.AllowUserToResizeRows = false;
this.audioList.BackgroundColor = System.Drawing.Color.White;
this.audioList.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
this.audioList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index 888c91c9f..e5f37d675 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -638,8 +638,13 @@ namespace Handbrake.Controls drp_audioBitrate.Items.Add("768");
}
- if (drp_audioBitrate.SelectedItem == null)
+ if (drp_audioBitrate.SelectedItem == null && audioList.SelectedRows.Count == 0)
drp_audioBitrate.SelectedIndex = drp_audioBitrate.Items.Count - 1;
+
+ if (drp_audioBitrate.SelectedItem == null && audioList.SelectedRows.Count != 0 && (string)this.audioList.SelectedRows[0].Cells[5].Value == "Auto")
+ {
+ drp_audioBitrate.SelectedItem = "160";
+ }
}
/// <summary>
|