[smuxi/stable] Frontend-GNOME: {dis, en}able all SSH input fields in assistant



commit 5f24458f3bc08ea2d08dc830c87f332106f2141e
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Jul 10 11:05:12 2016 +0200

    Frontend-GNOME: {dis,en}able all SSH input fields in assistant
    
    When not using SSH all SSH related fields should be disabled and cleared. Only
    disabling the SSH username field but leaving SSH password and keyfile enabled
    is pretty confusing and inconsistent.

 .../Views/Assistants/Engine/EngineAssistant.cs     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/Assistants/Engine/EngineAssistant.cs 
b/src/Frontend-GNOME/Views/Assistants/Engine/EngineAssistant.cs
index 476099f..88a9e6f 100644
--- a/src/Frontend-GNOME/Views/Assistants/Engine/EngineAssistant.cs
+++ b/src/Frontend-GNOME/Views/Assistants/Engine/EngineAssistant.cs
@@ -257,8 +257,12 @@ namespace Smuxi.Frontend.Gnome
         {
             bool useSsh = f_ConnectionWidget.UseSshTunnelCheckButton.Active;
             f_CredentialsWidget.SshUsernameEntry.Sensitive = useSsh;
+            f_CredentialsWidget.SshPasswordEntry.Sensitive = useSsh;
+            f_CredentialsWidget.SshKeyfileChooserButton.Sensitive = useSsh;
             if (!useSsh) {
                 f_CredentialsWidget.SshUsernameEntry.Text = String.Empty;
+                f_CredentialsWidget.SshPasswordEntry.Text = String.Empty;
+                f_CredentialsWidget.SshKeyfileChooserButton.UnselectAll();
             }
 
             bool isComplete = true;


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