From cf148ce0e2ea504eb7101c94a04b082ed3a79726 Mon Sep 17 00:00:00 2001
From: "Serg V. Zhdanovskih (Norseman)"
Date: Tue, 13 Aug 2024 23:39:43 +0300
Subject: [PATCH] Fixed clearing text in the source citation dropdown list
[GKv3] (fix #593)
---
locales/help_enu/gkhHistory.html | 1 +
locales/help_rus/gkhHistory.html | 1 +
projects/GKv3/GEDKeeper3/GKUI/Forms/SourceCitEditDlg.cs | 4 +++-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/locales/help_enu/gkhHistory.html b/locales/help_enu/gkhHistory.html
index beae8ad1c..98d1ac650 100644
--- a/locales/help_enu/gkhHistory.html
+++ b/locales/help_enu/gkhHistory.html
@@ -12,6 +12,7 @@ Change log
??.??.2024 [v2.32.0 & v3.8.0]
+ - Fixed clearing text in the source citation dropdown list [GKv3].
- Filtering and quick search methods have been combined.
diff --git a/locales/help_rus/gkhHistory.html b/locales/help_rus/gkhHistory.html
index 1417ec648..a2d138617 100644
--- a/locales/help_rus/gkhHistory.html
+++ b/locales/help_rus/gkhHistory.html
@@ -12,6 +12,7 @@ История версий
??.??.2024 [v2.32.0 & v3.8.0]
+ - Устранен сброс текста в выпадающем списке ссылки на источник [GKv3].
- Объединены методы фильтрации и быстрого поиска.
diff --git a/projects/GKv3/GEDKeeper3/GKUI/Forms/SourceCitEditDlg.cs b/projects/GKv3/GEDKeeper3/GKUI/Forms/SourceCitEditDlg.cs
index 849d53637..e4de6dd35 100644
--- a/projects/GKv3/GEDKeeper3/GKUI/Forms/SourceCitEditDlg.cs
+++ b/projects/GKv3/GEDKeeper3/GKUI/Forms/SourceCitEditDlg.cs
@@ -1,6 +1,6 @@
/*
* "GEDKeeper", the personal genealogical database editor.
- * Copyright (C) 2009-2023 by Sergey V. Zhdanovskih.
+ * Copyright (C) 2009-2024 by Sergey V. Zhdanovskih.
*
* This file is part of "GEDKeeper".
*
@@ -107,7 +107,9 @@ private void cbSource_KeyDown(object sender, KeyEventArgs e)
private void cbSource_KeyUp(object sender, KeyEventArgs e)
{
+ var text = cmbSource.Text;
fController.RefreshSourcesList(cmbSource.Text);
+ cmbSource.Text = text;
//cmbSource.SelectionStart = cmbSource.Text.Length;
}
}