[california] Reset CalDAV activator dialog when jumped to: Bug #738589



commit 05d2525f91415fd7a6e3b42aeb9e3340997dfd4f
Author: Jim Nelson <jim yorba org>
Date:   Tue Oct 21 16:19:28 2014 -0700

    Reset CalDAV activator dialog when jumped to: Bug #738589
    
    The Card sensitivity and widget states needed to be reset every time
    the Card is jumped to, otherwise it will remain insensitive with old
    information.

 src/activator/generic/generic-subscribe.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/activator/generic/generic-subscribe.vala b/src/activator/generic/generic-subscribe.vala
index 0bda6a6..9c6dc69 100644
--- a/src/activator/generic/generic-subscribe.vala
+++ b/src/activator/generic/generic-subscribe.vala
@@ -55,6 +55,9 @@ internal abstract class Subscribe : Gtk.Grid, Toolkit.Card {
     }
     
     public virtual void jumped_to(Toolkit.Card? from, Toolkit.Card.Jump reason, Value? message) {
+        name_entry.text = "";
+        url_entry.text = "";
+        username_entry.text = "";
     }
     
     private bool on_entry_changed(Binding binding, Value source_value, ref Value target_value) {
@@ -97,6 +100,8 @@ internal abstract class Subscribe : Gtk.Grid, Toolkit.Card {
             notify_failure(_("Unable to subscribe to calendar at %s: %s").printf(url_entry.text,
                 subscribe_err.message));
         }
+        
+        sensitive = true;
     }
     
     protected abstract async void subscribe_async(string name, Soup.URI uri, string? username,


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