Fix for using selected text in find/replace - thx Daniel :)

This commit is contained in:
niksedk 2023-09-05 17:29:59 +02:00
parent 47d7552778
commit 23a63e1df7
2 changed files with 4 additions and 4 deletions

View File

@ -218,14 +218,14 @@ namespace Nikse.SubtitleEdit.Forms
{
textBoxFind.Visible = false;
comboBoxFind.Visible = true;
comboBoxFind.Text = selectedText;
comboBoxFind.SelectAll();
comboBoxFind.Items.Clear();
for (var index = 0; index < Configuration.Settings.Tools.FindHistory.Count; index++)
{
var s = Configuration.Settings.Tools.FindHistory[index];
comboBoxFind.Items.Add(s);
}
comboBoxFind.Text = selectedText;
comboBoxFind.SelectAll();
}
else
{

View File

@ -128,14 +128,14 @@ namespace Nikse.SubtitleEdit.Forms
{
textBoxFind.Visible = false;
comboBoxFind.Visible = true;
comboBoxFind.Text = selectedText;
comboBoxFind.SelectAll();
comboBoxFind.Items.Clear();
for (var index = 0; index < Configuration.Settings.Tools.FindHistory.Count; index++)
{
var s = Configuration.Settings.Tools.FindHistory[index];
comboBoxFind.Items.Add(s);
}
comboBoxFind.Text = selectedText;
comboBoxFind.SelectAll();
}
else
{