[geary/mjog/636-add-account-name-validation: 2/2] Manually pre-validate default name in Accounts.EditorAddPane



commit a278163ca93f9565c615332df2e02f3c7daf540c
Author: Michael Gratton <mike vee net>
Date:   Wed Nov 20 14:46:19 2019 +1100

    Manually pre-validate default name in Accounts.EditorAddPane
    
    Fixes #636

 src/client/accounts/accounts-editor-add-pane.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/accounts/accounts-editor-add-pane.vala 
b/src/client/accounts/accounts-editor-add-pane.vala
index d565930d..8932d8c3 100644
--- a/src/client/accounts/accounts-editor-add-pane.vala
+++ b/src/client/accounts/accounts-editor-add-pane.vala
@@ -560,7 +560,7 @@ private class Accounts.NameRow : EntryRow {
         if (this.value.text != "") {
             // Validate if the string is non-empty so it will be good
             // to go from the start
-            this.value.activate();
+            this.validator.validate();
         }
     }
 


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