[chronojump] Fixes on empty combos (jump_rj, runs, runs_i) when change in the middle of import, fix win innolab i



commit fbae851701f031f73d120b6add2f7d7db9302070
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 1 15:56:38 2021 +0100

    Fixes on empty combos (jump_rj, runs, runs_i) when change in the middle of import, fix win innolab import

 src/gui/app1/chronojump.cs | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index d37bb8b00..38fc0c7c7 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2493,6 +2493,11 @@ public partial class ChronoJumpWindow
                        LogB.Information("o is null");
                        return;
                }
+               if(UtilGtk.ComboGetActive(combo) == "")
+               {
+                       LogB.Information(" ...but is null or empty.");
+                       return;
+               }
 
                //two combobox are linked ---->
                if(comboSelectContactsTopNoFollow)
@@ -2538,6 +2543,11 @@ public partial class ChronoJumpWindow
                ComboBox combo = o as ComboBox;
                if (o == null)
                        return;
+               if(UtilGtk.ComboGetActive(combo) == "")
+               {
+                       LogB.Information(" ...but is null or empty.");
+                       return;
+               }
 
                //two combobox are linked ---->
                if(comboSelectContactsTopNoFollow)
@@ -2574,6 +2584,11 @@ public partial class ChronoJumpWindow
                ComboBox combo = o as ComboBox;
                if (o == null)
                        return;
+               if(UtilGtk.ComboGetActive(combo) == "")
+               {
+                       LogB.Information(" ...but is null or empty.");
+                       return;
+               }
 
                //two combobox are linked ---->
                if(comboSelectContactsTopNoFollow)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]